Minimum supported dependencies #1219
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Minimum supported dependencies | |
on: | |
# Run daily at 0:01 UTC | |
schedule: | |
- cron: '1 0 * * *' | |
workflow_dispatch: | |
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 --upgrade pip setuptools wheel | |
python -m pip --no-cache-dir install --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/ |