|
| 1 | +--- |
1 | 2 | name: Testing
|
2 | 3 |
|
3 | 4 | on:
|
@@ -39,40 +40,41 @@ jobs:
|
39 | 40 | shell: ${{ matrix.os == 'windows-latest' && 'pwsh' || '/bin/bash --noprofile --norc -Eeuxo pipefail {0}' }}
|
40 | 41 |
|
41 | 42 | steps:
|
42 |
| - - uses: actions/checkout@v3 |
| 43 | + - uses: actions/checkout@v3 |
43 | 44 |
|
44 |
| - - name: Slugify GITHUB_REPOSITORY |
45 |
| - run: echo "GITHUB_REPOSITORY_SLUG=${GITHUB_REPOSITORY////_}" >> $GITHUB_ENV |
| 45 | + - name: Slugify GITHUB_REPOSITORY |
| 46 | + run: echo "GITHUB_REPOSITORY_SLUG=${GITHUB_REPOSITORY////_}" >> $GITHUB_ENV |
46 | 47 |
|
47 |
| - - name: Set up Python ${{ matrix.python-version }} |
48 |
| - uses: actions/setup-python@v4 |
49 |
| - with: |
50 |
| - python-version: ${{ matrix.python-version }} |
51 |
| - cache: 'pip' |
52 |
| - cache-dependency-path: setup.py |
| 48 | + - name: Set up Python ${{ matrix.python-version }} |
| 49 | + uses: actions/setup-python@v4 |
| 50 | + with: |
| 51 | + python-version: ${{ matrix.python-version }} |
| 52 | + cache: pip |
| 53 | + cache-dependency-path: setup.py |
53 | 54 |
|
54 |
| - - name: Install dependencies |
55 |
| - run: | |
56 |
| - python -m pip install --upgrade pip |
57 |
| - python -m pip install tox |
| 55 | + - name: Install dependencies |
| 56 | + run: | |
| 57 | + python -m pip install --upgrade pip |
| 58 | + python -m pip install tox |
58 | 59 |
|
59 |
| - - name: Test with tox |
60 |
| - env: |
61 |
| - FORCE_COLOR: 1 |
62 |
| - PYTEST_CI_ARGS: --cov-report=xml --cov-report=html --junitxml=test_artifacts/test_report.xml --color=yes |
63 |
| - run: tox ${{ matrix.python-version == '3.6' && '--skip-missing-interpreters=true' || '' }} |
| 60 | + - name: Test with tox |
| 61 | + env: |
| 62 | + FORCE_COLOR: 1 |
| 63 | + PYTEST_CI_ARGS: --cov-report=xml --cov-report=html --junitxml=test_artifacts/test_report.xml --color=yes |
| 64 | + run: tox ${{ matrix.python-version == '3.6' && '--skip-missing-interpreters=true' || '' }} |
64 | 65 |
|
65 |
| - - name: Upload coverage reports to Codecov |
66 |
| - uses: codecov/codecov-action@v3 |
67 |
| - with: |
68 |
| - token: ${{ secrets.CODECOV_TOKEN }} |
69 |
| - flags: ${{ matrix.os }},${{ matrix.python-version }} |
70 |
| - fail_ci_if_error: true |
71 |
| - files: test_artifacts/cobertura.xml |
| 66 | + - name: Upload coverage reports to Codecov |
| 67 | + uses: codecov/codecov-action@v3 |
| 68 | + with: |
| 69 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 70 | + flags: ${{ matrix.os }},${{ matrix.python-version }} |
| 71 | + fail_ci_if_error: true |
| 72 | + files: test_artifacts/cobertura.xml |
72 | 73 |
|
73 |
| - - name: Create artifacts |
74 |
| - uses: actions/upload-artifact@v3 |
75 |
| - if: ${{ !cancelled() }} |
76 |
| - with: |
77 |
| - name: ${{ env.GITHUB_REPOSITORY_SLUG }}_test-artifacts_${{ github.event_name }}_${{ github.event.pull_request.number || github.sha }}_${{ matrix.os }}_py${{ matrix.python-version }} |
78 |
| - path: test_artifacts/ |
| 74 | + - name: Create artifacts |
| 75 | + uses: actions/upload-artifact@v3 |
| 76 | + if: ${{ !cancelled() }} |
| 77 | + with: |
| 78 | + name: ${{ env.GITHUB_REPOSITORY_SLUG }}_test-artifacts_${{ github.event_name }}_${{ github.event.pull_request.number || github.sha }}_${{ matrix.os |
| 79 | + }}_py${{ matrix.python-version }} |
| 80 | + path: test_artifacts/ |
0 commit comments