From 00c4dc47d065d3c04d53bcd9a9bf8df545f957ed Mon Sep 17 00:00:00 2001 From: Jake <37048747+Jacob-Stevens-Haas@users.noreply.github.com> Date: Wed, 31 Jul 2024 19:17:53 -0700 Subject: [PATCH] CI need a second commit --- .github/workflows/push-test.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push-test.yml b/.github/workflows/push-test.yml index 79eefa3..f39f1fa 100644 --- a/.github/workflows/push-test.yml +++ b/.github/workflows/push-test.yml @@ -97,11 +97,25 @@ jobs: # Load cached venv if cache exists # Install dependencies if cache does not exist # ====== + - name: Load cached venv + id: cached-poetry-dependencies-dev + uses: actions/cache@v4 + with: + path: .venv + key: dev-${{ matrix.python-version }}-${{ matrix.poetry-version }}-${{ hashFiles('**/poetry.lock') }} - name: Install dependencies + if: steps.cached-poetry-dependencies-dev.outputs.cache-hit != 'true' run: poetry install --no-interaction -E dev - - name: Run ASV benchmarks + # ====== + # Compare benchmarks between master and PR, and fail if any get worse + # ====== + + - name: Setup ASV run: | pip install asv cd asv_bench asv machine --yes - asv continuous $GITHUB_BASE_REF $GITHUB_REF --strict -e --python=same \ No newline at end of file + - run: git fetch origin $GITHUB_BASE_REF:base $GITHUB_REF:pr + - name: Check regression + run: | + asv continuous $GITHUB_BASE_REF $GITHUB_REF -e --python=same