|
38 | 38 | # Use Docker container only for Python 3.6 |
39 | 39 | container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }} |
40 | 40 | 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 |
| 41 | + - run: echo "test-common-pinned" |
84 | 42 | check_required_tests: |
85 | 43 | name: All pinned Common tests passed |
86 | 44 | needs: test-common-pinned |
|
89 | 47 | runs-on: ubuntu-22.04 |
90 | 48 | steps: |
91 | 49 | - name: Check for failures |
92 | | - if: contains(needs.test-common-pinned.result, 'failure') || contains(needs.test-common-pinned.result, 'skipped') |
| 50 | + if: needs.test-common-pinned.result != 'success' |
93 | 51 | run: | |
94 | 52 | echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 |
0 commit comments