test.yml (709B)
1 name: Python package 2 3 on: [push, pull_request] 4 5 jobs: 6 build: 7 runs-on: ubuntu-latest 8 strategy: 9 matrix: 10 python-version: ["3.7", "3.8", "3.9", "3.10"] 11 12 steps: 13 - uses: actions/checkout@v2 14 - name: Set up Python ${{ matrix.python-version }} 15 uses: actions/setup-python@v2 16 with: 17 python-version: ${{ matrix.python-version }} 18 - name: Lint with flake8 19 run: | 20 sudo apt install python3-pip 21 pip3 install flake8 22 ./test/lint/lint-python.sh 23 - name: Install SatSale 24 run: pip3 install -r requirements.txt 25 - name: Run tests 26 run: | 27 pip3 install pytest 28 ./test/run_tests.sh