Merge pull request #204 from yt-project/pre-commit-ci-update-config #1212
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: CI (bleeding edge) | |
# this workflow is heavily inspired from pandas, see | |
# https://github.com/pandas-dev/pandas/blob/master/.github/workflows/python-dev.yml | |
# goal: check stability against dev versions of Python, numpy, and matplotlib | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths: | |
- .github/workflows/bleeding-edge.yaml | |
schedule: | |
# run this every Wednesday at 3 am UTC | |
- cron: 0 3 * * 3 | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
runs-on: ${{ matrix.os }} | |
name: Test nightly dependencies | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0 | |
with: | |
python-version: '3.13' | |
- name: Configure uv | |
run: | | |
echo "UV_PRERELEASE=allow" >> $GITHUB_ENV | |
echo "UV_EXTRA_INDEX_URL=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple" >> $GITHUB_ENV | |
echo "UV_INDEX_STRATEGY=unsafe-best-match" >> $GITHUB_ENV | |
- name: Run test suite | |
# forcing bytecode compilation for colorspacious | |
# see https://github.com/astral-sh/uv/issues/4758 | |
run: | | |
uv run --no-editable --compile-bytecode --group test \ | |
pytest --color yes --mpl-results-path=test_results | |
- uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 | |
if: failure() | |
with: | |
name: test_results | |
path: test_results/ |