From a12ba3ffd2078262109e7ffc780cdcc575264ac4 Mon Sep 17 00:00:00 2001 From: Konstantin Malanchev Date: Mon, 30 Sep 2024 13:46:34 -0400 Subject: [PATCH] Use setup-python in asv-pr.yml --- .github/workflows/asv-pr.yml | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/.github/workflows/asv-pr.yml b/.github/workflows/asv-pr.yml index bf5aed6..ef048ef 100644 --- a/.github/workflows/asv-pr.yml +++ b/.github/workflows/asv-pr.yml @@ -20,21 +20,8 @@ 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 }} @@ -46,15 +33,12 @@ jobs: - name: Display Workflow Run Information run: | echo "Workflow Run ID: ${{ github.run_id }}" - - name: Cache Python ${{ env.PYTHON_VERSION }} - uses: actions/cache@v4 + - name: Setup Python + uses: actions/setup-python@v5 with: - path: ~/.cache/pip - key: python-${{ env.PYTHON_VERSION }} + python-version: '3.10' - 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 - name: Make artifacts directory run: mkdir -p ${{ env.ARTIFACTS_DIR }} @@ -83,4 +67,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: benchmark-artifacts - path: ${{ env.ARTIFACTS_DIR }} \ No newline at end of file + path: ${{ env.ARTIFACTS_DIR }}