|
| 1 | +name: Master Windows |
| 2 | +# This is a temporary fix to avoid hitting the max 256 jobs per workflow limit |
| 3 | +# We will remove this once we have a better solution |
| 4 | + |
| 5 | +on: |
| 6 | + push: |
| 7 | + branches: |
| 8 | + - master |
| 9 | + |
| 10 | +jobs: |
| 11 | + cache: |
| 12 | + uses: ./.github/workflows/cache-shared-deps.yml |
| 13 | + |
| 14 | + test: |
| 15 | + needs: |
| 16 | + - cache |
| 17 | + |
| 18 | + uses: ./.github/workflows/test-all-windows.yml |
| 19 | + with: |
| 20 | + repo: core |
| 21 | + |
| 22 | + # Options |
| 23 | + # Because -m starts with a dash, |
| 24 | + # click (the library used to build the CLI) will |
| 25 | + # interpret it as an option, not as an argument. |
| 26 | + # To avoid this, using -- syntax, |
| 27 | + # which tells the command that everything following it |
| 28 | + # should be treated as positional arguments, not options |
| 29 | + pytest-args: '-m "not flaky"' |
| 30 | + secrets: inherit |
| 31 | + |
| 32 | + permissions: |
| 33 | + # needed for compute-matrix in test-target.yml |
| 34 | + contents: read |
| 35 | + |
| 36 | + publish-test-results: |
| 37 | + |
| 38 | + needs: |
| 39 | + - test |
| 40 | + |
| 41 | + if: success() || failure() |
| 42 | + concurrency: |
| 43 | + group: test-results |
| 44 | + |
| 45 | + permissions: |
| 46 | + checks: write |
| 47 | + pull-requests: write |
| 48 | + contents: write |
| 49 | + |
| 50 | + uses: ./.github/workflows/test-results-master.yml |
| 51 | + secrets: inherit |
| 52 | + |
| 53 | + upload-coverage: |
| 54 | + needs: |
| 55 | + - test |
| 56 | + if: > |
| 57 | + !github.event.repository.private && |
| 58 | + (success() || failure()) |
| 59 | + runs-on: ubuntu-latest |
| 60 | + permissions: |
| 61 | + # needed for codecov, allows the action to get a JWT signed by Github |
| 62 | + id-token: write |
| 63 | + contents: read |
| 64 | + |
| 65 | + steps: |
| 66 | + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 67 | + |
| 68 | + - name: Download all coverage artifacts |
| 69 | + uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 |
| 70 | + with: |
| 71 | + pattern: coverage-* |
| 72 | + path: coverage-reports |
| 73 | + merge-multiple: false |
| 74 | + |
| 75 | + - name: Upload coverage to Codecov |
| 76 | + uses: codecov/codecov-action@15559ed290fa727036809b67ab0f646ffa6c5158 |
| 77 | + with: |
| 78 | + use_oidc: true |
| 79 | + directory: coverage-reports |
| 80 | + fail_ci_if_error: false |
| 81 | + |
| 82 | + submit-traces: |
| 83 | + needs: |
| 84 | + - test |
| 85 | + if: success() || failure() |
| 86 | + |
| 87 | + uses: ./.github/workflows/submit-traces.yml |
| 88 | + secrets: inherit |
0 commit comments