Skip to content

Merge pull request #156 from sadikkuzu/pre-commit-ci-update-config #235

Merge pull request #156 from sadikkuzu/pre-commit-ci-update-config

Merge pull request #156 from sadikkuzu/pre-commit-ci-update-config #235

Workflow file for this run

name: codecov workflow
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
name: Code coverage
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install poetry
poetry install
- name: Run tests and collect coverage
run: poetry run pytest --cov=. --cov-report=term-missing --cov-report=xml
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}