Skip to content

Commit

Permalink
Add /test-platforms GH workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rvykydal committed Mar 11, 2024
1 parent 8528eec commit 71ca3cd
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/test-platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ jobs:
with:
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}'
context: '${{ env.STATUS_NAME }} ${{ needs.pr-info.outputs.launch_args }}'
description: 'running tests with args: ${{ steps.generate_query.outputs.launch_args }}'
description: 'running tests with args ${{ steps.generate_query.outputs.launch_args }}'
state: pending
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
env:
Expand Down Expand Up @@ -319,3 +319,25 @@ jobs:
# # TODO: timeouts?
# # TODO: implement waive
# # TODO: implement progress from anaconda repo
#

result:
if: ${{ always() }}
name: Set result status
runs-on: ubuntu-latest
env:
STATUS_NAME: test-platforms
needs: [platform, pr-info]
steps:
- name: Show overall status
uses: octokit/[email protected]
with:
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}'
context: '${{ env.STATUS_NAME }} ${{ needs.pr-info.outputs.launch_args }}'
description: 'finished'
state: ${{ needs.platform.result }}
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# if: ${{ needs.build.result != 'success' }}
# run: exit 1

0 comments on commit 71ca3cd

Please sign in to comment.