Skip to main content

pytest plugin to annotate failed tests with a workflow command for GitHub Actions

Project description

pytest-github-actions-annotate-failures

Pytest plugin to annotate failed tests with a workflow command for GitHub Actions

Usage

Just install and run pytest with this plugin in your workflow. For example,

name: test

on:
  push:

jobs:
  test:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    - uses: actions/setup-python@v1
      with:
        python-version: 3.7

    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install -r requirements.txt

    - name: Install plugin
      run: pip install pytest-github-actions-annotate-failures

    - run: pytest
      env:
        PYTEST_PLUGINS: pytest_github_actions_annotate_failures

Screenshot

Image from Gyazo

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file pytest-github-actions-annotate-failures-0.0.2.tar.gz.

File metadata

  • Download URL: pytest-github-actions-annotate-failures-0.0.2.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for pytest-github-actions-annotate-failures-0.0.2.tar.gz
Algorithm Hash digest
SHA256 33040ffc920c8a1b5cb2c86e6785fc659d4281c82cef289a229a4ea4b6ff7a41
MD5 4d4b967822faac0be53f4ba47430a1fe
BLAKE2b-256 d1bf5783d3f7af1fe15b0c0f7ad8653f36a71fe64d025281b5f1efc9ef7b878f

See more details on using hashes here.

File details

Details for the file pytest_github_actions_annotate_failures-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_github_actions_annotate_failures-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bf6204b70514676834ad3a7cfc05550919cd30463eb1b617fb249ce0351d1247
MD5 b77349b49388543c8b4510e9cae0546d
BLAKE2b-256 10540758b4340f858398b70cd70fbf7331ff5f6a6ce64b609b690749e75902c3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page