Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
alert-triangle

GitHub Action

Create Issue From pytest log

v1.2.5

Create Issue From pytest log

alert-triangle

Create Issue From pytest log

Create an issue for failed tests from a pytest-reportlog file

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Create Issue From pytest log

uses: xarray-contrib/[email protected]

Learn more about this action in xarray-contrib/issue-from-pytest-log

Choose a version

issue-from-pytest-log

Create or update an issue for failed tests from a pytest-reportlog file.

Usage

To use the issue-from-pytest-log action in workflows, simply add a new step:

jobs:
  my-job:
    ...
    strategy:
      fail-fast: false
      ...

    ...

    - uses: actions/setup-python@v4
      with:
        python-version: "3.10"
        cache: pip

    ...

    - uses: xarray-contrib/issue-from-pytest-log@main
      if: |
        failure()
        && ...
      with:
        log-path: pytest-log.jsonl