From 0dd5bb4589442cf827ef4f02ab3126898a2901e9 Mon Sep 17 00:00:00 2001 From: Andreas Stenius Date: Mon, 18 Mar 2024 15:00:51 +0100 Subject: [PATCH] Purge pants setup of 2.19.1 each run. --- .github/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 67fe9bc..64b502d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,7 +42,7 @@ jobs: run: cargo clippy --locked --all - name: Unit Tests run: cargo test --all - - name: Setup Python 3.9 + - name: Setup Python 3.9 (Ubuntu only) if: ${{ matrix.os == 'ubuntu-22.04' }} uses: actions/setup-python@v4 with: @@ -54,9 +54,12 @@ jobs: with: path: ${{ env.SCIE_PANTS_DEV_CACHE }} key: ${{ matrix.os }}-scie-pants-v6 - - name: Build, Package & Integration Tests + - name: Build, Package & Integration Tests (MacOS) if: ${{ matrix.os == 'macOS-10.15-X64' || matrix.os == 'macOS-11-ARM64'}} run: | + # Clean up the science cache for Pants 2.19.1 setup to ensure it's bootstrapped each run. + rm -rf ~/Library/Caches/nce/*/bindings/venv/2.19.1 + # TODO(John Sirois): Kill --tools-pex-mismatch-warn: # https://github.com/pantsbuild/scie-pants/issues/2 # @@ -69,7 +72,7 @@ jobs: # PANTS_BOOTSTRAP_GITHUB_API_BEARER_TOKEN=${{ secrets.GITHUB_TOKEN }} \ cargo run -p package -- test --check --tools-pex-mismatch-warn - - name: Build, Package & Integration Tests + - name: Build, Package & Integration Tests (Ubuntu) if: ${{ matrix.os == 'ubuntu-22.04' }} run: | cargo run -p package -- --dest-dir dist/ tools