|
18 | 18 | # don't cancel tests if any of the pipelines fails |
19 | 19 | fail-fast: false |
20 | 20 | matrix: |
21 | | - python-version: [3.6, 3.7, 3.8, 3.9] |
| 21 | + python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] |
22 | 22 |
|
23 | 23 | steps: |
24 | 24 | - uses: actions/checkout@v2 |
|
27 | 27 | with: |
28 | 28 | python-version: ${{ matrix.python-version }} |
29 | 29 | - name: Install the package and dependencies |
30 | | - run: python setup.py install |
| 30 | + run: | |
| 31 | + pip install -U setuptools |
| 32 | + pip install -r requirements.txt |
| 33 | + python setup.py install |
31 | 34 | - name: Lint with flake8 |
32 | 35 | run: | |
33 | 36 | pip install flake8 |
|
36 | 39 | # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide |
37 | 40 | flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics |
38 | 41 | - name: Install testing dependencies |
39 | | - run: pip install pytest --upgrade |
| 42 | + run: | |
| 43 | + pip install pytest --upgrade |
40 | 44 | - name: Test with pytest and run coverage |
41 | | - run: pytest -s -vv --color=yes |
| 45 | + run: pytest -s -vv --color=yes tests |
42 | 46 |
|
43 | 47 | coverage: |
44 | 48 |
|
|
51 | 55 | with: |
52 | 56 | python-version: '3.8' |
53 | 57 | - name: Install the package and dependencies |
54 | | - run: python setup.py install |
| 58 | + run: | |
| 59 | + pip install -r requirements-dev.txt |
| 60 | + python setup.py install |
55 | 61 | - name: Lint with flake8 |
56 | 62 | run: | |
57 | 63 | pip install flake8 |
|
62 | 68 | - name: Install testing and coverage dependencies |
63 | 69 | run: | |
64 | 70 | pip install coveralls coverage |
65 | | - pip install -U setuptools |
66 | | - pip install pytest --upgrade |
67 | 71 | - name: Test with pytest with coverage |
68 | | - run: coverage run --source combojsonapi -m pytest |
| 72 | + run: coverage run --source combojsonapi -m pytest tests |
69 | 73 | - name: Trigger Coveralls |
70 | 74 | run: coveralls --service=github |
71 | 75 | env: |
|
0 commit comments