Skip to content

Commit

Permalink
create reports on failing upstream-dev tests
Browse files Browse the repository at this point in the history
  • Loading branch information
keewis committed Jan 25, 2025
1 parent 4c1e9ba commit 947fdf3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,23 @@ jobs:
python -m pip install -U --pre apache-beam
- name: 🏄‍♂️ Run Tests
shell: bash -l {0}
id: test-run
run: |
py.test tests -v -n auto \
--cov=pangeo_forge_recipes --cov-config .coveragerc \
--cov-report term-missing \
--cov-report xml \
--durations=10 --durations-min=1.0
--durations=10 --durations-min=1.0 \
--report-log output-${{ matrix.python-version }}-log.jsonl
- name: Generate and publish the report
if: |
failure()
&& steps.test-run.outcome == 'failure'
&& github.event_name == 'schedule'
uses: xarray-contrib/issue-from-pytest-log@v1
with:
log-path: output-${{ matrix.python-version }}-log.jsonl
issue-title: ⚠ Nightly upstream-dev CI (${{matrix.python-version}}) failed ⚠
- name: 🚦 Run Codecov
if: |
github.event_name == 'push' ||
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ test = [
"pytest-lazy-fixture",
"pytest-sugar",
"pytest-timeout",
"pytest-reportlog",
"s3fs",
"gcsfs",
"scipy",
Expand Down

0 comments on commit 947fdf3

Please sign in to comment.