Skip to content

Commit

Permalink
Fix sequence of jobs for Basic Static checks (apache#24864)
Browse files Browse the repository at this point in the history
After recent changes to use Python for selective checks, we
have to checkout and install python in basic checks slightly later.
It uses setup* files from Breeze to determine if cache needs to
be rebuild, so we need to checkout the code before setting up
Python.
  • Loading branch information
potiuk authored Jul 6, 2022
1 parent f54782a commit 8053876
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -678,12 +678,6 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
steps:
- name: Cleanup repo
run: docker run -v "${GITHUB_WORKSPACE}:/workspace" -u 0:0 bash -c "rm -rf /workspace/*"
- name: "Setup python"
uses: actions/setup-python@v4
with:
python-version: ${{ needs.build-info.outputs.default-python-version }}
cache: 'pip'
cache-dependency-path: ./dev/breeze/setup*
- name: Cache pre-commit envs
uses: actions/cache@v3
with:
Expand All @@ -697,6 +691,12 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
ref: ${{ github.sha }}
fetch-depth: 2
persist-credentials: false
- name: "Setup python"
uses: actions/setup-python@v4
with:
python-version: ${{ needs.build-info.outputs.default-python-version }}
cache: 'pip'
cache-dependency-path: ./dev/breeze/setup*
- run: ./scripts/ci/install_breeze.sh
- name: "Free space"
run: breeze free-space
Expand Down

0 comments on commit 8053876

Please sign in to comment.