Skip to content

Commit

Permalink
Added coverage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
abbyevewilliams committed Oct 17, 2024
1 parent d181ab7 commit 8095146
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Coverage

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install .[dev]
- name: Run coverage
run: |
pytest --cov-config=.coveragerc --cov=./ci_course --cov-report=xml
cat coverage.xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: coverage.xml

0 comments on commit 8095146

Please sign in to comment.