1name: Test 2 3on: [push, pull_request] 4 5jobs: 6 build: 7 runs-on: ubuntu-latest 8 strategy: 9 fail-fast: false 10 matrix: 11 python-version: 12 - "3.7" 13 - "3.8" 14 - "3.9" 15 - "3.10" 16 steps: 17 - uses: actions/checkout@v1 18 - name: Set up Python 19 uses: actions/setup-python@v1 20 with: 21 python-version: ${{ matrix.python-version }} 22 - name: install dependencies 23 run: | 24 pip3 install -r scripts/requirements.txt 25 pip3 install -r scripts/requirements-test.txt 26 pip3 install -r scripts/requirements-dev.txt 27 - name: lint scripts 28 run: flake8 --config scripts/.flake8 scripts 29 - name: run script tests 30 run: | 31 pytest scripts/tests \ 32 --cov=scripts \ 33 --cov-config scripts/.coveragerc \ 34 --cov-report term \ 35 -vv 36