Skip to content

Commit

Permalink
Fix CI workflow to activate virtual environment conditionally based o…
Browse files Browse the repository at this point in the history
…n OS
  • Loading branch information
CarlKCarlK committed Oct 17, 2024
1 parent 1c26860 commit 24274fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .

0 comments on commit 24274fe

Please sign in to comment.