Skip to content

Commit

Permalink
code coverage github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hkershaw-brown committed Aug 30, 2024
1 parent 4ba4943 commit 55a4e0d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/code-cov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Run tests and upload coverage

on:
push:
branches:
- main
- code-cov
- feature/*
pull_request:
branches:
- main

jobs:
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4

- name: Install dependencies
run: pip install pytest pytest-cov pandas>=2.2.0 numpy>=1.26 plotly>=5.22.0 pyyaml>=6.0.2

- name: Run tests
run: pytest --cov

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ dist
.ipynb_checkpoints
__pycache__/
*.egg-info/
.coverage

0 comments on commit 55a4e0d

Please sign in to comment.