Skip to content

Commit

Permalink
ci: Add lower bound requirements tests
Browse files Browse the repository at this point in the history
* Use 'uv pip install --upgrade --resolution lowest-direct' to
  automatically evaluate if the lower bounds of the dependencies
  specified are correct.
  • Loading branch information
matthewfeickert committed May 7, 2024
1 parent ff7863e commit d87fad3
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/lower-bound-requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Minimum supported dependencies

on:
# Run weekly at 1:23 UTC
schedule:
- cron: '23 1 * * 0'
workflow_dispatch:

jobs:
test:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
# minimum supported Python
python-version: ['3.9']

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies and force lowest bound
run: |
python -m pip install uv
uv pip install --system --upgrade ".[test]"
uv pip install --system --upgrade --resolution lowest-direct .
- name: List installed Python packages
run: uv pip list --system

- name: Test with pytest
run: pytest tests/

0 comments on commit d87fad3

Please sign in to comment.