From 8e712887b56c66bb3d3af0d6e59956dfe5011271 Mon Sep 17 00:00:00 2001 From: crusaderky Date: Thu, 25 Jan 2024 01:32:39 +0000 Subject: [PATCH 1/3] Wipe CI cache daily --- .github/workflows/test.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index b36b76cde..961ff1526 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -37,7 +37,10 @@ jobs: with: environment-file: ${{ matrix.environment-file }} create-args: python=${{ matrix.python-version }} - cache-environment: true + # Wipe cache every 24 hours or whenever environment.yml changes. This means it + # may take up to a day before changes to unpinned packages are picked up. + # To force a cache refresh, change the hardcoded numerical suffix below. + cache-environment-key: environment-${{ steps.date.outputs.date }}-0 - name: Install dask-expr run: python -m pip install -e . --no-deps From a89c3e5a072a4e727847da248919c8ab45ce6e13 Mon Sep 17 00:00:00 2001 From: crusaderky Date: Thu, 25 Jan 2024 01:42:42 +0000 Subject: [PATCH 2/3] Double check --- .github/workflows/test.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 961ff1526..859a8e9b8 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -45,6 +45,10 @@ jobs: - name: Install dask-expr run: python -m pip install -e . --no-deps + - name: Print dask versions + # Output of `micromamba list` is buggy for pip-installed packages + run: pip list | grep -E 'dask|distributed' + - name: Run tests run: py.test -n auto --verbose --cov=dask_expr --cov-report=xml From da64d2593095b8f982f6d47eff713e000eb90e1d Mon Sep 17 00:00:00 2001 From: crusaderky Date: Thu, 25 Jan 2024 01:51:10 +0000 Subject: [PATCH 3/3] fix --- .github/workflows/test.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 859a8e9b8..123d94543 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -32,6 +32,10 @@ jobs: with: fetch-depth: 0 # Needed by codecov.io + - name: Get current date + id: date + run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}" + - name: Install Environment uses: mamba-org/setup-micromamba@v1 with: