Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions .github/workflows/coverage-lint-pr.yml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/coverage-lint.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/lint_and_coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: lint_and_coverage

on:
push:
branches: [master]
pull_request:
branches: ['*']

jobs:
linting:
name: Lint and Coverage
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Install from source
run: pip install .[test]

- name: Run Linting
uses: astral-sh/ruff-action@v3

- name: Coverage Requirement
run: |
pip install cython
cythonize tests/test_cython/cython_example.pyx
pytest --cov-fail-under=99
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ purge: clear
test:
./env/bin/pip install cython
./env/bin/cythonize tests/test_cython/cython_example.pyx
./env/bin/pytest
./env/bin/pytest --cov-fail-under=99

lint:
./env/bin/ruff check
Expand Down
Loading