Skip to content

Commit

Permalink
Use setup-python in asv-pr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hombit committed Sep 30, 2024
1 parent 7b9c408 commit a12ba3f
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/asv-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down Expand Up @@ -83,4 +67,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: benchmark-artifacts
path: ${{ env.ARTIFACTS_DIR }}
path: ${{ env.ARTIFACTS_DIR }}

0 comments on commit a12ba3f

Please sign in to comment.