From a49b19307c5ba9e03f91304a4b44d1c244870ab7 Mon Sep 17 00:00:00 2001 From: Sandro Campos Date: Mon, 30 Sep 2024 14:59:03 -0400 Subject: [PATCH] Remove cached Python env --- .github/workflows/asv-pr.yml | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/.github/workflows/asv-pr.yml b/.github/workflows/asv-pr.yml index bf5aed6..f9ac955 100644 --- a/.github/workflows/asv-pr.yml +++ b/.github/workflows/asv-pr.yml @@ -20,25 +20,16 @@ env: ARTIFACTS_DIR: ${{ github.workspace }}/artifacts jobs: - setup-python: - runs-on: ubuntu-latest - steps: - - name: Cache Python ${{ env.PYTHON_VERSION }} - uses: actions/cache@v4 - with: - path: ~/.cache/pip - key: python-${{ env.PYTHON_VERSION }} - - name: Set up Python ${{ env.PYTHON_VERSION }} - uses: actions/setup-python@v5 - with: - python-version: ${{ env.PYTHON_VERSION }} asv-pr: runs-on: ubuntu-latest - needs: setup-python defaults: run: working-directory: ${{ env.WORKING_DIR }} steps: + - name: Set up Python ${{ env.PYTHON_VERSION }} + uses: actions/setup-python@v5 + with: + python-version: ${{ env.PYTHON_VERSION }} - name: Checkout PR branch of the repository uses: actions/checkout@v4 with: @@ -46,16 +37,8 @@ jobs: - name: Display Workflow Run Information run: | echo "Workflow Run ID: ${{ github.run_id }}" - - name: Cache Python ${{ env.PYTHON_VERSION }} - uses: actions/cache@v4 - with: - path: ~/.cache/pip - key: python-${{ env.PYTHON_VERSION }} - name: Install dependencies - run: | - sudo apt-get update - python -m pip install --upgrade pip - pip install asv==0.6.1 virtualenv tabulate lf-asv-formatter + run: pip install asv==0.6.1 virtualenv tabulate lf-asv-formatter - name: Make artifacts directory run: mkdir -p ${{ env.ARTIFACTS_DIR }} - name: Save pull request number @@ -74,7 +57,8 @@ jobs: git fetch upstream asv continuous upstream/main HEAD --verbose || true asv compare upstream/main HEAD --sort ratio --verbose | tee output - python -m lf_asv_formatter --asv_version "$(echo asv --version)" + print ">> asv version is $(asv --version)" + python -m lf_asv_formatter --asv_version "$(asv --version)" printf "\n\nClick [here]($STEP_URL) to view all benchmarks." >> output mv output ${{ env.ARTIFACTS_DIR }} env: