Skip to content

Commit

Permalink
CI: Run apt-get only on ubuntu
Browse files Browse the repository at this point in the history
Makes sure that `apt-get update` only runs on ubuntu runners.
Windows and MacOS don't have sudo or apt-get.
  • Loading branch information
st-bender committed Apr 9, 2024
1 parent cfa1bf6 commit 7ecfa24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci_build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- name: Update package list
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
- name: Set up Python ${{ matrix.python-version }}
Expand Down

0 comments on commit 7ecfa24

Please sign in to comment.