Update tests for v0.3 #799
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pytest-cov | |
# Need to include "push" | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
cov: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Upgrade pip | |
run: python -m pip install --upgrade pip | |
- name: Install graphix with dev deps. | |
run: pip install .[dev] | |
- name: Run pytest | |
run: pytest --cov=./graphix --cov-report=xml --cov-report=term | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |