|
1 | 1 | name: Tests |
2 | 2 |
|
3 | | -on: [push, pull_request] |
| 3 | +on: [ push, pull_request ] |
4 | 4 |
|
5 | 5 | jobs: |
6 | 6 | build: |
7 | 7 | runs-on: ubuntu-latest |
8 | 8 | strategy: |
9 | 9 | matrix: |
10 | | - python-version: [2.7, 3.6, 3.7, 3.8, 3.9, '3.10'] |
| 10 | + python-version: [ 2.7, 3.6, 3.7, 3.8, 3.9, '3.10' ] |
11 | 11 | steps: |
12 | | - - uses: actions/checkout@v2 |
13 | | - - name: Set up Python ${{ matrix.python-version }} |
14 | | - uses: actions/setup-python@v2 |
15 | | - with: |
16 | | - python-version: ${{ matrix.python-version }} |
17 | | - - name: Install dependencies |
18 | | - run: | |
19 | | - python -m pip install --upgrade pip |
20 | | - pip install tox tox-gh-actions |
21 | | - - name: Test with tox |
22 | | - run: tox |
23 | | - - name: Upload coverage to Codecov |
24 | | - if: matrix.python-version == 3.6 && success() |
25 | | - uses: codecov/codecov-action@v1 |
26 | | - with: |
27 | | - files: coverage.xml |
28 | | - flags: unittests |
29 | | - name: codecov-client-reportportal |
30 | | - path_to_write_report: codecov_report.txt |
| 12 | + - name: Checkout repository |
| 13 | + uses: actions/checkout@v3 |
| 14 | + |
| 15 | + - name: Set up Python ${{ matrix.python-version }} |
| 16 | + uses: actions/setup-python@v4 |
| 17 | + with: |
| 18 | + python-version: ${{ matrix.python-version }} |
| 19 | + |
| 20 | + - name: Install dependencies |
| 21 | + run: | |
| 22 | + python -m pip install --upgrade pip |
| 23 | + pip install tox tox-gh-actions |
| 24 | +
|
| 25 | + - name: Test with tox |
| 26 | + run: tox |
| 27 | + |
| 28 | + - name: Upload coverage to Codecov |
| 29 | + if: matrix.python-version == 3.6 && success() |
| 30 | + uses: codecov/codecov-action@v1 |
| 31 | + with: |
| 32 | + files: coverage.xml |
| 33 | + flags: unittests |
| 34 | + name: codecov-client-reportportal |
| 35 | + path_to_write_report: codecov_report.txt |
0 commit comments