Add required result_id argument in task queue loop. #2220
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 | |
| # goals: check stability against | |
| # - dev version of Python, numpy, matplotlib, and unyt | |
| # - Cython and pytest pre-releases | |
| 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: | |
| permissions: {} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| name: "tests with bleeding-edge crucial deps" | |
| timeout-minutes: 60 | |
| concurrency: | |
| # auto-cancel any in-progress job *on the same branch* | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python (newest testable version) | |
| uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | |
| with: | |
| # this version should be upgraded as often as possible, typically once a year when | |
| # Cython, numpy and matplotlib are known to be compatible | |
| python-version: '3.14' | |
| enable-cache: false | |
| activate-environment: true # allows using uv pip directly | |
| - 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" | |
| - name: Install dependencies | |
| run: | | |
| uv add --no-install-project git+https://github.com/yt-project/unyt.git | |
| uv add --no-install-project --optional test git+https://github.com/pytest-dev/pytest.git | |
| uv pip install --upgrade setuptools numpy matplotlib Cython ewah-bool-utils | |
| - name: Build | |
| # --no-build-isolation is used to guarantee that build time dependencies | |
| # are not installed by uv sync as specified from pyproject.toml, hence we get | |
| # to use the dev version of numpy at build time. | |
| run: uv pip install --editable .[test] --no-build-isolation | |
| - run: yt config set --local yt log_level 50 # Disable excessive output | |
| - name: Run Tests | |
| run: uv run --no-sync pytest yt -vvv --color=yes | |
| create-issue: | |
| if: ${{ failure() && github.event_name == 'schedule' }} | |
| needs: [build] | |
| permissions: | |
| issues: write | |
| runs-on: ubuntu-latest | |
| name: Create issue on failure | |
| steps: | |
| - name: Create issue on failure | |
| uses: imjohnbo/issue-bot@3188c6ce06249206709d3b1f274d0d4c5a521601 # v3.4.5 | |
| with: | |
| title: 'TST: Upcoming dependency test failures' | |
| body: | | |
| The weekly build with future dependencies has failed. Check the logs | |
| https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} | |
| pinned: false | |
| close-previous: false | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |