-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d34b87
commit 2d51852
Showing
2 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: SPCS Integration testing | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "*" | ||
push: | ||
tags: | ||
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
branches: | ||
- main | ||
repository_dispatch: | ||
types: [ok-to-test-command] | ||
schedule: | ||
- cron: "0 8 * * *" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
|
||
jobs: | ||
define-matrix: | ||
uses: ./.github/workflows/matrix.yaml | ||
|
||
# Branch-based pull request | ||
spcs-integration-trusted: | ||
needs: define-matrix | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ["ubuntu-latest"] | ||
python-version: ["3.10"] | ||
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository | ||
uses: ./.github/workflows/test_trusted.yaml | ||
with: | ||
runs-on: ${{ matrix.os }} | ||
python-version: ${{ matrix.python-version }} | ||
python-env: integration | ||
hatch-run: integration:test-spcs | ||
secrets: inherit | ||
|
||
# Repo owner has commented /ok-to-test on a (fork-based) pull request | ||
spcs-integration-fork: | ||
needs: define-matrix | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: ["ubuntu-latest"] | ||
python-version: ["3.10"] | ||
permissions: | ||
pull-requests: write | ||
checks: write | ||
if: | | ||
github.event_name == 'repository_dispatch' && | ||
github.event.client_payload.slash_command.args.named.sha != '' && | ||
contains( | ||
github.event.client_payload.pull_request.head.sha, | ||
github.event.client_payload.slash_command.args.named.sha | ||
) | ||
uses: ./.github/workflows/test_fork.yaml | ||
with: | ||
runs-on: ${{ matrix.os }} | ||
python-version: ${{ matrix.python-version }} | ||
python-env: integration | ||
hatch-run: integration:test-spcs | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters