Skip to content

Commit 429ae5d

Browse files
authored
also create an issue if the import fails in the nightly CI (#170)
* also report if the import fails * [test-upstream][skip-ci] * remove the restriction on the run step * temporarily upload artifacts if not scheduled * [skip-ci][test-upstream] * back to uploading only if scheduled * [skip-ci]
1 parent fe10ca1 commit 429ae5d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/nightly.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,14 @@ jobs:
8080
- name: show versions
8181
run: python -m pip list
8282

83-
- name: import pint-xarray
84-
run: |
85-
python -c 'import pint_xarray'
86-
8783
- name: run tests
88-
if: success()
8984
id: status
9085
run: |
9186
set -euo pipefail
92-
python -m pytest -rf | tee output-${{ matrix.python-version }}-log || (
87+
python -c 'import pint_xarray' | tee output-${{ matrix.python-version }}-log || (
88+
echo '::set-output name=ARTIFACTS_AVAILABLE::true' && false
89+
)
90+
python -m pytest -rf | tee -a output-${{ matrix.python-version }}-log || (
9391
echo '::set-output name=ARTIFACTS_AVAILABLE::true' && false
9492
)
9593

0 commit comments

Comments
 (0)