Update README.md #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Install coverage.py | |
run: uv pip install coverage | |
- name: Run tests and collect coverage | |
run: uv run pytest --cov=fmpapi --cov-report=xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
files: coverage.xml | |
token: ${{ secrets.CODECOV_TOKEN }} |