Skip to content

Commit

Permalink
Only continue tests.yml workflow if not canceled (conda#13157)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard authored Sep 29, 2023
1 parent b2e15de commit a5e7c06
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ jobs:
flags: ${{ matrix.test-type }},${{ runner.os }},${{ matrix.python-version }}

- name: Upload test results
if: always()
if: '!cancelled()'
uses: actions/upload-artifact@v3
with:
# name has to be unique, to not overwrite uploads of other matrix runs. sha1 is optional and only to differentiate
Expand Down Expand Up @@ -190,7 +190,7 @@ jobs:
flags: ${{ matrix.test-type }},${{ runner.os }},${{ matrix.python-version }}

- name: Upload test results
if: always()
if: '!cancelled()'
uses: actions/upload-artifact@v3
with:
# name has to be unique, to not overwrite uploads of other matrix runs. sha1 is optional and only to differentiate
Expand Down Expand Up @@ -241,7 +241,7 @@ jobs:
/opt/conda-src/dev/linux/qemu.sh
- name: Upload test results
if: always()
if: '!cancelled()'
uses: actions/upload-artifact@v3
with:
# name has to be unique, to not overwrite uploads of other matrix runs. sha1 is optional and only to differentiate
Expand Down Expand Up @@ -337,7 +337,7 @@ jobs:
flags: ${{ matrix.test-type }},${{ runner.os }},${{ matrix.python-version }}

- name: Upload test results
if: always()
if: '!cancelled()'
uses: actions/upload-artifact@v3
with:
# name has to be unique, to not overwrite uploads of other matrix runs. sha1 is optional and only to differentiate
Expand All @@ -353,7 +353,9 @@ jobs:
aggregate:
# only aggregate test suite if there are code changes
needs: [changes, windows, linux, linux-qemu, macos]
if: always() && needs.changes.outputs.code == 'true'
if: >-
!cancelled()
&& needs.changes.outputs.code == 'true'
runs-on: ubuntu-latest
steps:
Expand All @@ -378,7 +380,7 @@ jobs:
analyze:
name: Analyze results
needs: [windows, linux, linux-qemu, macos, aggregate]
if: always()
if: '!cancelled()'

runs-on: ubuntu-latest
steps:
Expand All @@ -397,7 +399,7 @@ jobs:
# - this is the main repo, and
# - we are on the main, feature, or release branch
if: >-
always()
!cancelled()
&& !github.event.repository.fork
&& (
github.ref_name == 'main'
Expand Down

0 comments on commit a5e7c06

Please sign in to comment.