Skip to content

Commit

Permalink
refactor: improve integration tests (#1942)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian authored Aug 30, 2024
1 parent 8ccc6d1 commit 16d7815
Show file tree
Hide file tree
Showing 4 changed files with 310 additions and 65 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test_downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,7 @@ jobs:
echo "Current PATH: $env:PATH"
pixi --version
shell: pwsh
- name: Typecheck integration tests
run: pixi run typecheck-integration
- name: Run integration tests
run: pixi run test-integration
186 changes: 186 additions & 0 deletions pixi.lock

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

6 changes: 5 additions & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ run-all-examples = "python ./tests/run_all_examples.py"
run-all-examples-dev = "python ./tests/run_all_examples.py --pixi-exec ./target/debug/pixi"
test = "cargo test"
test-all = "cargo test --all-features"
test-integration = "pytest -s tests/integration"

[feature.pytest.dependencies]
mypy = ">=1.11,<1.12"
pytest = ">=8.0.2,<9"

[feature.pytest.tasks]
test-integration = "pytest tests/integration"
typecheck-integration = " mypy --strict tests/integration"

[feature.dev.dependencies]
# Needed for the citation
cffconvert = ">=2.0.0,<2.1"
Expand Down
Loading

0 comments on commit 16d7815

Please sign in to comment.