Merge pull request #251 from yt-project/dependabot/github_actions/dot… #1340
This file contains hidden or 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| - uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6 | |
| with: | |
| python-version: '3.14' | |
| enable-cache: false | |
| - name: Configure uv | |
| run: | | |
| echo "UV_PRERELEASE=allow" >> $GITHUB_ENV | |
| echo "UV_INDEX=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple" >> $GITHUB_ENV | |
| echo "UV_INDEX_STRATEGY=unsafe-best-match" >> $GITHUB_ENV | |
| - run: | | |
| uv lock --upgrade --no-build | |
| # this additional step is needed as long as our requires-python | |
| # (currently >=3.10) is lower than numpy's (currently >=3.11) or matplotlib's (currently >=3.11) | |
| uv lock -P numpy -P matplotlib | |
| # forcing bytecode compilation for colorspacious | |
| # see https://github.com/astral-sh/uv/issues/4758 | |
| uv sync --no-editable --group test --compile-bytecode | |
| - name: Run test suite | |
| run: | | |
| uv run --no-sync pytest --color yes --mpl-results-path=test_results | |
| - uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| if: failure() | |
| with: | |
| name: test_results | |
| path: test_results/ |