Skip to content

Commit

Permalink
fix/tweak github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
swryan committed Apr 12, 2024
1 parent 5c05a03 commit 6ca9775
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/openmdao_audit.yml
Expand Up @@ -122,6 +122,6 @@ jobs:
- name: Notify slack
uses: act10ns/slack@v2.0.0
with:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
status: ${{ job.status }}
if: failure()
14 changes: 12 additions & 2 deletions .github/workflows/openmdao_test_workflow.yml
Expand Up @@ -495,7 +495,7 @@ jobs:
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
- name: Slack unit test failure
if: steps.run_tests.outcome == 'failure'
if: failure() && steps.run_tests.outcome == 'failure'
uses: act10ns/slack@v2.0.0
with:
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
Expand All @@ -505,7 +505,7 @@ jobs:
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

- name: Slack doc build failure
if: steps.build_docs.outcome == 'failure'
if: failure() && steps.build_docs.outcome == 'failure'
uses: act10ns/slack@v2.0.0
with:
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
Expand Down Expand Up @@ -656,6 +656,16 @@ jobs:
Set-DisplayResolution -Width 1920 -Height 1080 -Force
testflo -n 2 openmdao --timeout=240 --show_skipped --coverage --coverpkg openmdao --durations=20
- name: Slack unit test failure
if: failure() && steps.run_tests.outcome == 'failure'
uses: act10ns/slack@v2.0.0
with:
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
status: ${{ steps.run_tests.outcome }}
message:
Unit testing failed on `${{ matrix.NAME }}` build.
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

- name: Submit coverage
id: coveralls
continue-on-error: true
Expand Down

0 comments on commit 6ca9775

Please sign in to comment.