Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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

Project description


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


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

name: test


    runs-on: ubuntu-latest

    - uses: actions/checkout@v2

    - uses: actions/setup-python@v1
        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

If your test is running in a Docker container, you have to install this plugin and manually set GITHUB_ACTIONS environment variable to true inside of Docker container. (For example, docker-compose run --rm -e GITHUB_ACTIONS=true app -- pytest)


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.

Files for pytest-github-actions-annotate-failures, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size pytest_github_actions_annotate_failures-0.1.2-py2.py3-none-any.whl (4.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size pytest-github-actions-annotate-failures-0.1.2.tar.gz (4.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page