Skip to content

Add files via upload #8

Add files via upload

Add files via upload #8

Workflow file for this run

name: Run Tests and Upload Coverage
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install pytest pytest-cov
- name: Run tests with coverage
run: pytest --cov=. --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
# For public repos, omit the token.
# For private repos, add CODECOV_TOKEN in Settings → Secrets → Actions
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml