Skip to content

Commit 1584471

Browse files
committed
TST: use uv pip compile to keep minimal deps in sync
1 parent 9fd2157 commit 1584471

File tree

2 files changed

+14
-32
lines changed

2 files changed

+14
-32
lines changed

.github/workflows/test.yml

+14-13
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
include:
3333
- os: ubuntu-20.04
3434
python-version: '3.9'
35+
deps: minimal
3536
fail-fast: false
3637

3738
concurrency:
@@ -44,21 +45,21 @@ jobs:
4445
uses: actions/setup-python@v5
4546
with:
4647
python-version: ${{ matrix.python-version }}
47-
- if: ${{ matrix.os == 'ubuntu-20.04' }}
48-
name: Install minimal env
48+
49+
- run: python -m pip install --upgrade pip
50+
51+
- if: matrix.deps == 'minimal'
4952
run: |
50-
python -m pip install --upgrade pip
51-
python -m pip install tomli tomli_w
52-
python scripts/pin_requirements.py
53-
python -m pip uninstall --yes tomli tomli_w
54-
python -m pip install -e . --only-binary ':all:'
55-
python -m pip install pytest pytest-mpl pytest-cov
56-
- if: ${{ matrix.os != 'ubuntu-20.04' }}
57-
name: Install full test env
53+
pipx run uv pip compile pyproject.toml --resolution=lowest-direct > mindeps.txt
54+
python -m pip install --requirement mindeps.txt
55+
56+
- name: Build
5857
run: |
59-
python -m pip install --upgrade pip setuptools wheel
60-
pip install -r requirements/dev.txt
61-
- run: python -m pip freeze
58+
python -m pip install -e .
59+
python -m pip install -r requirements/dev.txt
60+
61+
- run: python -m pip list
62+
6263
- name: Test package
6364
run: |
6465
pytest --color=yes --mpl --cov --cov-config=pyproject.toml --cov-report=term-missing

scripts/pin_requirements.py

-19
This file was deleted.

0 commit comments

Comments
 (0)