Skip to content

Commit

Permalink
Create codecov workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
christophscheuch committed Dec 23, 2024
1 parent 8dff19f commit 96cf2b4
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 21 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Check Test Coverage

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

permissions: read-all

jobs:
build:
runs-on: ${{ matrix.os }}

name: ${{ matrix.os }} (Python ${{ matrix.python-version }})

strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.10']

steps:
- name: Check out the repository
uses: actions/checkout@v3

- name: Install uv and set the python version
uses: astral-sh/setup-uv@v4
with:
python-version: ${{ matrix.python-version }}

- name: Sync dependencies
run: uv sync --all-extras --dev

- name: Run tests and collect coverage
run: uv run pytest tests --cov fmpapi

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
6 changes: 2 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,5 @@ jobs:
run: uv sync --all-extras --dev

- name: Run tests and collect coverage
run: uv run pytest tests --cov app

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
run: uv run pytest tests

128 changes: 111 additions & 17 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 96cf2b4

Please sign in to comment.