Skip to content

Commit

Permalink
Issue #229 Separate CI Job for CodeCov
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-fritchman committed Jul 3, 2024
1 parent cf3fc7b commit 2fe882c
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,37 @@ jobs:
python${{ matrix.python-version }} -m pip install pydantic${{ matrix.pydantic-version }}
python${{ matrix.python-version }} -m pytest -sv --cov=./ --cov-report=xml
# Seperate jobs for black and codecov, not subject to the dependency matrix
codecov:
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install dependencies
run: bash scripts/install-pypi.sh

- name: Test with pytest
run: |
pytest -sv --cov=./ --cov-report=xml
- name: Upload coverage to Codecov # Adapted from https://github.com/codecov/codecov-action#usage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: true
fail_ci_if_error: false
path_to_write_report: ./coverage/codecov_report.txt
verbose: true

# Seperate job for black, to remove all of the venv noise that we've created above
black:
runs-on: ubuntu-latest

Expand Down

0 comments on commit 2fe882c

Please sign in to comment.