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          - "3.11"
17    steps:
18      - uses: actions/checkout@v1
19      - name: Set up Python
20        uses: actions/setup-python@v1
21        with:
22          python-version: ${{ matrix.python-version }}
23      - name: install dependencies
24        run: |
25          pip3 install -r scripts/requirements.txt
26          pip3 install -r scripts/requirements-test.txt
27          pip3 install -r scripts/requirements-dev.txt
28      - name: lint scripts
29        run: flake8 --config scripts/.flake8 scripts
30      - name: run script tests
31        run: |
32          pytest scripts/tests \
33            --cov=scripts \
34            --cov-config scripts/.coveragerc \
35            --cov-report term \
36            -vv
37