-
Notifications
You must be signed in to change notification settings - Fork 84
46 lines (37 loc) · 1.42 KB
/
lower-bound-requirements.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Minimum supported dependencies
on:
# Run daily at 0:01 UTC
schedule:
- cron: '1 0 * * *'
workflow_dispatch:
permissions:
contents: read
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
# minimum supported Python
python-version: ['3.8']
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 'setuptools<70.0.0'
uv pip --no-cache install --system --constraint tests/constraints.txt ".[all,test]"
- name: List installed Python packages
run: python -m pip list
- name: Test with pytest
run: |
# Override the ini option for filterwarnings with an empty list to disable error on filterwarnings
# as testing for oldest releases that work with latest API, not the oldest releases that are warning
# free. Though still show warnings by setting warning control to 'default'.
export PYTHONWARNINGS='default'
# Run on tests/ to skip doctests of src given examples are for latest APIs
pytest --override-ini filterwarnings= --ignore tests/contrib --ignore tests/benchmarks --ignore tests/test_notebooks.py tests/