Skip to content

Commit

Permalink
Install into uv venv
Browse files Browse the repository at this point in the history
Create a proper virtualenv, and activate that virtualenv before installing pygmt and running pytest.
  • Loading branch information
weiji14 committed Nov 21, 2024
1 parent 1c69406 commit 3b7b777
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci_tests_legacy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,15 @@ jobs:
# Install the package that we want to test
- name: Install the package
run: |
uv venv
source .venv/bin/activate
uv run --with pip==23 --resolution lowest-direct --all-extras --dev make install
uv pip list
# Run the tests but skip images
- name: Run tests
run: uv run --with pytest==8,pytest-mpl==0.17,pytest-doctestplus==1.2 --resolution lowest-direct --all-extras --dev make test_no_images PYTEST_EXTRA="-r P"
run: |
source .venv/bin/activate
uv run --with pytest==8,pytest-mpl==0.17,pytest-doctestplus==1.2 --resolution lowest-direct --all-extras --dev make test_no_images PYTEST_EXTRA="-r P"
env:
GMT_LIBRARY_PATH: $CONDA_PREFIX/lib

0 comments on commit 3b7b777

Please sign in to comment.