Skip to content

Add codecov setup

Add codecov setup #41

Workflow file for this run

---
name: CI
on:
pull_request:
branches:
- main
push:
jobs:
tox:
uses: daniel-mizsak/workflows/.github/workflows/tox.yml@main
with:
python-version: "3.12"
codecov:
needs: tox
runs-on: ubuntu-latest
steps:
- name: Check out the codebase.
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 package locally.
run: >
pip install .[dev]
- name: Generate coverage report.
run: >
pytest
- name: Run codecov.
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: List content of folder.
run: >
ls -la