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.4.tar.gz.

File metadata

  • Download URL: pytest-github-actions-annotate-failures-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 296d77334dc3404220ad5d458b4773dfbbd28c3405c1f0871794d40c40d64486
MD5 730bb98aaf5a7dd68b111d758ab410a8
BLAKE2b-256 8ae8b796d42095f52fb7ced747ddb6221b0acadffaf00d10c16332d1c2604c4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_github_actions_annotate_failures-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3ca72253da15f54ee57ae76891d8a1cb05240655a96439bca70c933cb6526668
MD5 4e39d0fa1871fc5a3b08934c277fdb71
BLAKE2b-256 8472727e0fc642cf402816bf742a18deb4dea53ce4735b54ad982764433e423c

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