Skip to content

Commit

Permalink
chore: Add just task for running the test matrix locally
Browse files Browse the repository at this point in the history
  • Loading branch information
rumpelsepp committed Jan 16, 2025
1 parent 293af7f commit 017dd82
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ fmt:

run-tests: run-test-pytest run-test-bats

run-test-matrix:
#!/usr/bin/env bash
set -eu

matrix=("3.11" "3.12" "3.13")
for version in "${matrix[@]}"; do
echo "running tests with python version: $version"
uv sync --all-extras -p "$version"
uv run -p "$version" just run-tests
done

run-test-pytest:
python -m pytest -v --cov={{justfile_directory()}} --cov-report html tests/pytest

Expand Down

0 comments on commit 017dd82

Please sign in to comment.