Skip to content

Commit

Permalink
ci: Update apt package list before building py
Browse files Browse the repository at this point in the history
Makes sure that the package list is up to date before trying to build
python when it is not available. Otherwise the build might fail if some
package versions have changed.
  • Loading branch information
st-bender committed Oct 17, 2023
1 parent 503749a commit 5edca55
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci_build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
path: ~/.cache/pip
restore-keys: |
${{ runner.os }}-pip-
- name: Update package list
run: |
sudo apt-get update
if: startsWith(matrix.os, 'ubuntu')
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
uses: MatteoH2O1999/setup-python@v1
with:
Expand Down

0 comments on commit 5edca55

Please sign in to comment.