Skip to content

Commit

Permalink
Annotation for Github action failed pytests
Browse files Browse the repository at this point in the history
  • Loading branch information
fre171csiro committed Jun 5, 2024
1 parent b7ff92c commit d6f7e1a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ on:
push:
pull_request:
branches: [ main ]

env:
PYTEST_RUN_PATH: $GITHUB_WORKSPACE\..\tests
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand Down Expand Up @@ -44,4 +45,6 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'

- name: Activate env and Test with pytest
env:
PYTEST_PLUGINS: pytest_github_actions_annotate_failures
run: poetry run pytest
16 changes: 15 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ scipy = "^1.11.3"
netcdf4 = "^1.6.4"
wheel = "^0.41.2"
setuptools = "^70.0.0"
pytest-github-actions-annotate-failures = "^0.2.0"


[build-system]
Expand Down

0 comments on commit d6f7e1a

Please sign in to comment.