Skip to content

Commit

Permalink
use uv in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
phobson committed May 23, 2024
1 parent 18d727e commit 0554674
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/check-test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ jobs:
- name: Generate coverage report
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements_dev.txt ]; then pip install -r requirements_dev.txt; fi
python -m pip install uv
uv venv
source .venv/bin/activate
uv pip install pytest flake8
if [ -f requirements_dev.txt ]; then uv pip install -r requirements_dev.txt; fi
coverage run --source wqio check_wqio.py --doctest-modules --cov --cov-report=xml
- name: Upload coverage reports to Codecov
run: |
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/python-runtests-basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
if [ -f requirements_dev.txt ]; then pip install -r requirements_dev.txt; fi
python -m pip install uv
uv venv
source .venv/bin/activate
uv pip install pytest
if [ -f requirements_dev.txt ]; then uv pip install -r requirements_dev.txt; fi
- name: Test with pytest
run: |
source .venv/bin/activate
python check_wqio.py --doctest-modules
8 changes: 6 additions & 2 deletions .github/workflows/python-runtests-img-comp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements_dev.txt ]; then pip install -r requirements_dev.txt; fi
python -m pip install uv
uv venv
source .venv/bin/activate
uv pip install pytest
if [ -f requirements_dev.txt ]; then uv pip install -r requirements_dev.txt; fi
- name: Test with pytest
run: |
source .venv/bin/activate
export MPL_IMGCOMP_TOLERANCE=20
python check_wqio.py --strict --verbose

0 comments on commit 0554674

Please sign in to comment.