|
29 | 29 | strategy: |
30 | 30 | fail-fast: false |
31 | 31 | matrix: |
32 | | - python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13"] |
| 32 | + python-version: |
| 33 | + ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] |
33 | 34 | # python3.6 reached EOL and is no longer being supported on |
34 | 35 | # new versions of hosted runners on Github Actions |
35 | 36 | # ubuntu-20.04 is the last version that supported python3.6 |
|
38 | 39 | # Use Docker container only for Python 3.6 |
39 | 40 | container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }} |
40 | 41 | steps: |
41 | | - |
42 | | - - uses: actions/setup-python@v5 |
43 | | - if: ${{ matrix.python-version != '3.6' }} |
44 | | - with: |
45 | | - python-version: ${{ matrix.python-version }} |
46 | | - allow-prereleases: true |
47 | | - - name: Setup Test Env |
48 | | - run: | |
49 | | - pip install "coverage[toml]" tox |
50 | | - - name: Erase coverage |
51 | | - run: | |
52 | | - coverage erase |
53 | | - - name: Test common pinned |
54 | | - run: | |
55 | | - set -x # print commands that are executed |
56 | | - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-common" |
57 | | - - name: Generate coverage XML (Python 3.6) |
58 | | - if: ${{ !cancelled() && matrix.python-version == '3.6' }} |
59 | | - run: | |
60 | | - export COVERAGE_RCFILE=.coveragerc36 |
61 | | - coverage combine .coverage-sentry-* |
62 | | - coverage xml --ignore-errors |
63 | | - - name: Generate coverage XML |
64 | | - if: ${{ !cancelled() && matrix.python-version != '3.6' }} |
65 | | - run: | |
66 | | - coverage combine .coverage-sentry-* |
67 | | - coverage xml |
68 | | - - name: Upload coverage to Codecov |
69 | | - if: ${{ !cancelled() }} |
70 | | - |
71 | | - with: |
72 | | - token: ${{ secrets.CODECOV_TOKEN }} |
73 | | - files: coverage.xml |
74 | | - # make sure no plugins alter our coverage reports |
75 | | - plugin: noop |
76 | | - verbose: true |
77 | | - - name: Upload test results to Codecov |
78 | | - if: ${{ !cancelled() }} |
79 | | - uses: codecov/test-results-action@v1 |
80 | | - with: |
81 | | - token: ${{ secrets.CODECOV_TOKEN }} |
82 | | - files: .junitxml |
83 | | - verbose: true |
| 42 | + - run: echo "test-common-pinned" |
84 | 43 | check_required_tests: |
85 | 44 | name: All pinned Common tests passed |
86 | 45 | needs: test-common-pinned |
|
89 | 48 | runs-on: ubuntu-22.04 |
90 | 49 | steps: |
91 | 50 | - name: Check for failures |
92 | | - if: contains(needs.test-common-pinned.result, 'failure') || contains(needs.test-common-pinned.result, 'skipped') |
| 51 | + if: needs.test-common-pinned.result != 'success' |
93 | 52 | run: | |
94 | 53 | echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 |
0 commit comments