Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST: use uv pip compile to keep minimal deps in sync #129

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
include:
- os: ubuntu-20.04
python-version: '3.9'
deps: minimal
fail-fast: false

concurrency:
Expand All @@ -44,21 +45,22 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- if: ${{ matrix.os == 'ubuntu-20.04' }}
name: Install minimal env
run: |

- run: |
python -m pip install --upgrade pip
python -m pip install tomli tomli_w
python scripts/pin_requirements.py
python -m pip uninstall --yes tomli tomli_w
python -m pip install -e . --only-binary ':all:'
python -m pip install pytest pytest-mpl pytest-cov
- if: ${{ matrix.os != 'ubuntu-20.04' }}
name: Install full test env
python -m pip install -r requirements/dev.txt

- if: matrix.deps == 'minimal'
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements/dev.txt
- run: python -m pip freeze
pipx run uv pip compile pyproject.toml --resolution=lowest-direct > mindeps.txt
python -m pip install --requirement mindeps.txt

- name: Build
run: |
python -m pip install -e .

- run: python -m pip list

- name: Test package
run: |
pytest --color=yes --mpl --cov --cov-config=pyproject.toml --cov-report=term-missing
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ requires-python = ">=3.9, <4"
dependencies = [
"colorspacious>=1.1.0",
"matplotlib>=3.5",
"numpy>=1.19.3",
"numpy>=1.23.0",
]

[project.urls]
Expand Down
2 changes: 0 additions & 2 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
-e .
pyqt5>=5.12
pytest>=4.6.0
pytest-cov
pytest-mpl
readme_renderer[md]
viscm>=0.10
19 changes: 0 additions & 19 deletions scripts/pin_requirements.py

This file was deleted.