|
36 | 36 | outputs: |
37 | 37 | dirs-to-lint: ${{ steps.set-matrix.outputs.dirs-to-lint }} |
38 | 38 | dirs-to-test: ${{ steps.set-matrix.outputs.dirs-to-test }} |
| 39 | + extended-tests: ${{ steps.set-matrix.outputs.extended-tests }} |
39 | 40 | lint: |
40 | 41 | name: cd ${{ matrix.working-directory }} |
41 | 42 | needs: [ build ] |
|
71 | 72 | with: |
72 | 73 | working-directory: ${{ matrix.working-directory }} |
73 | 74 | secrets: inherit |
| 75 | + |
| 76 | + extended-tests: |
| 77 | + name: "cd ${{ matrix.job-configs.working-directory }} / make extended_tests #${{ matrix.job-configs.python-version }}" |
| 78 | + needs: [ build ] |
| 79 | + if: ${{ needs.build.outputs.extended-tests != '[]' }} |
| 80 | + strategy: |
| 81 | + matrix: |
| 82 | + # note different variable for extended test dirs |
| 83 | + job-configs: ${{ fromJson(needs.build.outputs.extended-tests) }} |
| 84 | + fail-fast: false |
| 85 | + runs-on: ubuntu-latest |
| 86 | + timeout-minutes: 20 |
| 87 | + defaults: |
| 88 | + run: |
| 89 | + working-directory: ${{ matrix.job-configs.working-directory }} |
| 90 | + steps: |
| 91 | + - uses: actions/checkout@v4 |
| 92 | + |
| 93 | + - name: Set up Python ${{ matrix.job-configs.python-version }} + uv |
| 94 | + uses: "./.github/actions/uv_setup" |
| 95 | + with: |
| 96 | + python-version: ${{ matrix.job-configs.python-version }} |
| 97 | + |
| 98 | + - name: Install dependencies and run extended tests |
| 99 | + shell: bash |
| 100 | + run: | |
| 101 | + echo "Running extended tests, installing dependencies with uv..." |
| 102 | + uv venv |
| 103 | + uv sync --group test |
| 104 | + VIRTUAL_ENV=.venv uv pip install -r extended_testing_deps.txt |
| 105 | + VIRTUAL_ENV=.venv make extended_tests |
| 106 | +
|
| 107 | + - name: Ensure the tests did not create any additional files |
| 108 | + shell: bash |
| 109 | + run: | |
| 110 | + set -eu |
| 111 | +
|
| 112 | + STATUS="$(git status)" |
| 113 | + echo "$STATUS" |
| 114 | +
|
| 115 | + # grep will exit non-zero if the target message isn't found, |
| 116 | + # and `set -e` above will cause the step to fail. |
| 117 | + echo "$STATUS" | grep 'nothing to commit, working tree clean' |
| 118 | +
|
74 | 119 | ci_success: |
75 | 120 | name: "CI Success" |
76 | 121 | needs: [build, lint, test, compile-integration-tests] |
|
0 commit comments