| 1 |
name: CI (bleeding edge) |
| 2 |
# this workflow is heavily inspired from pandas, see |
| 3 |
# https://github.com/pandas-dev/pandas/blob/master/.github/workflows/python-dev.yml |
| 4 |
|
| 5 |
# goal: check stability against dev versions of Python, numpy, and matplotlib |
| 6 |
|
| 7 |
on: |
| 8 |
push: |
| 9 |
branches: |
| 10 |
- main |
| 11 |
pull_request: |
| 12 |
paths: |
| 13 |
- .github/workflows/bleeding-edge.yaml |
| 14 |
schedule: |
| 15 |
# run this every Wednesday at 3 am UTC |
| 16 |
- cron: 0 3 * * 3 |
| 17 |
workflow_dispatch: |
| 18 |
|
| 19 |
jobs: |
| 20 |
build: |
| 21 |
strategy: |
| 22 |
fail-fast: false |
| 23 |
matrix: |
| 24 |
os: |
| 25 |
- ubuntu-latest |
| 26 |
|
| 27 |
runs-on: ${{ matrix.os }} |
| 28 |
name: Test nightly dependencies |
| 29 |
timeout-minutes: 60 |
| 30 |
|
| 31 |
steps: |
| 32 |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 33 |
with: |
| 34 |
fetch-depth: 0 |
| 35 |
|
| 36 |
- uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0 |
| 37 |
with: |
| 38 |
python-version: '3.13' |
| 39 |
|
| 40 |
- name: Configure uv |
| 41 |
run: | |
| 42 |
echo "UV_PRERELEASE=allow" >> $GITHUB_ENV |
| 43 |
echo "UV_INDEX=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple" >> $GITHUB_ENV |
| 44 |
echo "UV_INDEX_STRATEGY=unsafe-best-match" >> $GITHUB_ENV |
| 45 |
|
| 46 |
- name: Run test suite |
| 47 |
# forcing bytecode compilation for colorspacious |
| 48 |
# see https://github.com/astral-sh/uv/issues/4758 |
| 49 |
run: | |
| 50 |
uv run --no-editable --compile-bytecode --group test \ |
| 51 |
pytest --color yes --mpl-results-path=test_results |
| 52 |
|
| 53 |
- uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 |
| 54 |
if: failure() |
| 55 |
with: |
| 56 |
name: test_results |
| 57 |
path: test_results/ |