Skip to content

Commit

Permalink
ci: move iai checkout to the top (#1481)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oppen authored Nov 14, 2023
1 parent 206395f commit ec657be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/iai_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
cache-iai-results:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/[email protected]
- name: Set up cargo cache
Expand All @@ -16,8 +18,6 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Checkout
uses: actions/checkout@v3
- name: Install test dependencies
run: |
pip install -r requirements.txt
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/iai_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ jobs:
fetch-iai-results:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.base.sha }}
- name: Initialize IAI cache for ${{ github.event.pull_request.base.sha }}
uses: actions/cache@v3
id: cache-iai-results
Expand All @@ -28,11 +32,6 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Checkout
if: ${{ steps.cache-iai-results.outputs.cache-hit != 'true' }}
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.base.sha }}
- name: Install test dependencies
if: ${{ steps.cache-iai-results.outputs.cache-hit != 'true' }}
run: |
Expand All @@ -49,6 +48,8 @@ jobs:
needs: fetch-iai-results
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/[email protected]
- name: Set up cargo cache
Expand All @@ -57,8 +58,6 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Checkout
uses: actions/checkout@v3
- name: Install test dependencies
run: |
pip install -r requirements.txt
Expand Down

0 comments on commit ec657be

Please sign in to comment.