WIP Migrate to pixi #1
Workflow file for this run
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: Upstream | |
| on: | |
| schedule: | |
| - cron: "0 1 * * *" | |
| push: | |
| branches: [main] | |
| tags: ["*"] | |
| pull_request: | |
| workflow_dispatch: | |
| # When this workflow is queued, automatically cancel any previous running | |
| # or pending jobs from the same branch | |
| concurrency: | |
| group: upstream-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| # Do not run the schedule job on forks | |
| if: github.repository == 'dask/distributed' || github.event_name != 'schedule' | |
| name: ${{ matrix.environment }} ${{ matrix.partition }} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 120 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| environment: [py314, nightly] | |
| partition: [ci1, not ci1] | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Invalidate pixi lock | |
| run: rm -f pixi.lock | |
| - uses: prefix-dev/setup-pixi@v0 | |
| with: | |
| pixi-version: v0.69.0 | |
| environments: ${{ matrix.environment }} | |
| cache: false | |
| locked: false | |
| - name: Setup SSH | |
| # FIXME no SSH available on Windows | |
| # https://github.com/dask/distributed/issues/4509 | |
| if: ${{ matrix.os != 'windows-latest' }} | |
| run: continuous_integration/scripts/setup_ssh.sh | |
| - name: Reconfigure pytest-timeout | |
| # No SIGALRM available on Windows | |
| run: sed -i.bak 's/timeout_method = "thread"/timeout_method = "signal"/' pyproject.toml | |
| - name: Disable IPv6 | |
| shell: bash -l {0} | |
| # FIXME ipv6-related failures on Ubuntu and MacOS github actions CI | |
| # https://github.com/dask/distributed/issues/4514 | |
| if: ${{ matrix.os != 'windows-latest' }} | |
| run: echo "DISABLE_IPV6=1" >> $GITHUB_ENV | |
| - name: Print host info | |
| run: pixi r -e ${{ matrix.environment }} host-info | |
| - name: Run tests | |
| id: run_tests | |
| run: pixi run -e ${{ matrix.environment }} test-ci -m "${{ matrix.partition }}" | |
| - name: Coverage | |
| uses: codecov/codecov-action@v6 |