|
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 |
|
|
62 | 66 | - name: Install testing and coverage dependencies
|
63 | 67 | run: |
|
64 | 68 | pip install coveralls coverage
|
65 |
| - pip install -U setuptools |
66 |
| - pip install pytest --upgrade |
67 | 69 | - name: Test with pytest with coverage
|
68 | 70 | run: coverage run --source combojsonapi -m pytest
|
69 | 71 | - name: Trigger Coveralls
|
|
0 commit comments