SatSale

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 43fb038eb575f4ae95c39c88e59c962ffbf3b823
parent 45b14146a368e03601f5656171e72a55cfb66c30
Author: Nick <nick@nickfarrow.com>
Date:   Fri, 14 Oct 2022 16:43:15 +1100

Merge pull request #104 from kristapsk/github-actions-tests

CI: Add GitHub Actions test runner
Diffstat:
A.github/workflows/test.yml | 28++++++++++++++++++++++++++++
1 file changed, 28 insertions(+), 0 deletions(-)

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Python package + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.7", "3.8", "3.9", "3.10"] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Lint with flake8 + run: | + sudo apt install python3-pip + pip3 install flake8 + ./test/lint/lint-python.sh + - name: Install SatSale + run: pip3 install -r requirements.txt + - name: Run tests + run: | + pip3 install pytest + ./test/run_tests.sh