Skip to content
Open
Show file tree
Hide file tree
Changes from 10 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
10 changes: 7 additions & 3 deletions .github/workflows/openvariant_tester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,20 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1

- uses: astral-sh/setup-uv@v4

- name: Lint with Ruff
run: |
uv sync --extra linting --frozen --no-install-project
uv run ruff check openvariant

- name: Test
- name: Test Python-based code
run: |
uv sync --extra tests --frozen
uv run pytest --cov .
uv run pytest --cov .

- name: Test Rust-based code
run: |
make test

- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v3
Expand Down
85 changes: 85 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ crate-type = ["cdylib"]

[dependencies]
pyo3 = { version = "0.28.3", features = ["extension-module"] }
serde = { version = "1.0.228", features = ["derive"] }
thiserror = "2"
yaml_serde = "0.10.4"
14 changes: 10 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@ release:
test:
PYO3_PYTHON=$$(uv python find) cargo test

fmt:
PYO3_PYTHON=$$(uv python find) cargo fmt

lint:
PYO3_PYTHON=$$(uv python find) cargo clippy
PYO3_PYTHON=$$(uv python find) cargo clippy -- -D warnings

format:
PYO3_PYTHON=$$(uv python find) cargo fmt --check
fix:
PYO3_PYTHON=$$(uv python find) cargo clippy --fix --allow-dirty --allow-staged
PYO3_PYTHON=$$(uv python find) cargo fmt

check: lint format
check:
PYO3_PYTHON=$$(uv python find) cargo fmt --check
PYO3_PYTHON=$$(uv python find) cargo clippy -- -D warnings
Loading
Loading