-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CI workflow to activate virtual environment conditionally based o…
…n OS
- Loading branch information
1 parent
1c26860
commit 24274fe
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -179,13 +179,14 @@ jobs: | |
- name: Install Python ${{ matrix.python-version }} | ||
run: uv python install ${{ matrix.python-version }} | ||
- name: Setup, Lint, and Test Python | ||
shell: bash | ||
run: | | ||
cd bed_reader | ||
uvx [email protected] check . | ||
uvx ruff@latest check . || echo "Ignoring warnings from the latest version of ruff" | ||
uv sync --extra min_dev | ||
source ../.venv/bin/activate | ||
[ "$RUNNER_OS" = "Windows" ] && call .\\..\\.venv\\Scripts\\activate || source ../.venv/bin/activate | ||
pytest tests/test_opt_dep.py | ||
uv sync --extra dev --extra sparse --extra samples | ||
source ../.venv/bin/activate | ||
[ "$RUNNER_OS" = "Windows" ] && call .\\..\\.venv\\Scripts\\activate || source ../.venv/bin/activate | ||
pytest . |