Skip to content

Commit

Permalink
Merge pull request #245 from neutrinoceros/tests/mindeps
Browse files Browse the repository at this point in the history
TST: use uv pip compile to test minimal deps
  • Loading branch information
neutrinoceros authored Mar 1, 2024
2 parents 2c49ea2 + e2247cd commit 25e3fc9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
include:
- os: ubuntu-20.04
python-version: '3.8'
pip-args: --constraint constraints/minimal_dependencies.txt
deps: minimal

runs-on: ${{ matrix.os }}
steps:
Expand All @@ -37,16 +37,22 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- run: python -m pip install --upgrade pip

- if: matrix.deps == 'minimal'
run: |
pipx run uv pip compile pyproject.toml --resolution=lowest-direct > mindeps.txt
python -m pip install --requirement mindeps.txt --only-binary ':all:'
- name: Build
run: |
python -m pip install --upgrade pip
python -m pip install . ${{ matrix.pip-args }}
python -m pip install .
python -m pip install --requirement requirements/tests.txt
- run: python -m pip list

- name: Run pytest
run: |
python -m pip freeze
pytest --color=yes
run: pytest --color=yes


type-check:
Expand Down
9 changes: 0 additions & 9 deletions constraints/minimal_dependencies.txt

This file was deleted.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ classifiers = [
]
requires-python = ">=3.8"

# keep in sync with constraints/minimal_dependencies.txt
dependencies = [
"cblind>=2.3.0",
"inifix>=3.0.0",
Expand Down

0 comments on commit 25e3fc9

Please sign in to comment.