commit aca690db8bfdf70bc119d23a31074323797297ad parent 45b14146a368e03601f5656171e72a55cfb66c30 Author: Kristaps Kaupe <kristaps@blogiem.lv> Date: Wed, 5 Oct 2022 20:35:48 +0300 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