Merge pull request #415 from neutrinoceros/renovate/astral-sh-setup-u… #1101
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) | |
| # goals: check stability against dev version of Python and yt | |
| 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: | |
| runs-on: ubuntu-latest | |
| name: CI w/ yt dev | |
| timeout-minutes: 60 | |
| concurrency: | |
| group: ${{ github.ref }}-dev | |
| cancel-in-progress: true | |
| steps: | |
| - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - uses: astral-sh/setup-uv@5a7eac68fb9809dea845d802897dc5c723910fa3 # v7.1.3 | |
| with: | |
| python-version: '3.14' | |
| # can't cache numpy nightlies as the name of the artifact | |
| # stays the same for a while | |
| 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 | |
| - run: uv sync --group test --extra HDF5 --no-editable --no-install-package yt | |
| - run: uv pip install git+https://github.com/yt-project/yt.git | |
| - name: Run Tests | |
| run: | | |
| uv run --no-sync --no-editable pytest --color=yes |