Skip to content

run ci

run ci #3

Workflow file for this run

name: CodeCov
on:
pull_request:
branches: [develop, main]
push:
branches: [develop, main]
jobs:
build:
name: Pytest & Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip"
- name: Run Pre-commit
uses: pre-commit/[email protected]
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[test]"
- name: Run Pytest and Generate Report
run: |
python -m pip install coverage[toml]
coverage run -m pytest
- name: Upload Coverage Reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false