Skip to content

2nd attempt at ruff (#428) #1013

2nd attempt at ruff (#428)

2nd attempt at ruff (#428) #1013

Workflow file for this run

name: coverage-lint
on:
push:
branches: [master]
jobs:
tests:
name: Coverage and Lint
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: actions/[email protected]
with:
python-version: 3.11
- name: Install from source
run: |
pip install --upgrade pip setuptools wheel
pip install .[test]
- name: Run Linting
uses: astral-sh/[email protected]
- name: Coverage
run: |
pip install cython
cythonize tests/test_cython/cython_example.pyx
pytest --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
file: ./coverage.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}