Skip to content

Commit

Permalink
[ci] fix install of OS packages in CI workflows
Browse files Browse the repository at this point in the history
We should be using "apt-get update" to update package lists before
installing any new packages. This has never mattered before, but
recently the installation of various packages started to fail with
404 errors, which are resolved by updating the package lists first.
  • Loading branch information
rohanpm committed Nov 13, 2023
1 parent b4e4404 commit 72fc4f6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 14 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docs.yml
Expand Up @@ -15,8 +15,10 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install system dependencies
run: sudo apt-get install -y rpm libkrb5-dev
- name: Install OS packages
run: |
sudo apt-get -y update
sudo apt-get install -y rpm libkrb5-dev
- name: Install Tox
run: pip install tox
- name: Run Tox
Expand Down
36 changes: 24 additions & 12 deletions .github/workflows/tox-test.yml
Expand Up @@ -7,8 +7,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install RPM
run: sudo apt-get install -y rpm libkrb5-dev
- name: Install OS packages
run: |
sudo apt-get -y update
sudo apt-get install -y rpm libkrb5-dev
- name: Setup Python
uses: actions/setup-python@v2
with:
Expand All @@ -21,8 +23,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install RPM
run: sudo apt-get install -y rpm libkrb5-dev
- name: Install OS packages
run: |
sudo apt-get -y update
sudo apt-get install -y rpm libkrb5-dev
- name: Setup Python
uses: actions/setup-python@v2
with:
Expand All @@ -35,8 +39,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install RPM
run: sudo apt-get install -y rpm libkrb5-dev
- name: Install OS packages
run: |
sudo apt-get -y update
sudo apt-get install -y rpm libkrb5-dev
- name: Setup Python
uses: actions/setup-python@v2
with:
Expand All @@ -61,8 +67,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install RPM
run: sudo apt-get install -y rpm libkrb5-dev
- name: Install OS packages
run: |
sudo apt-get -y update
sudo apt-get install -y rpm libkrb5-dev
- name: Setup Python
uses: actions/setup-python@v2
with:
Expand All @@ -75,8 +83,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install RPM
run: sudo apt-get install -y rpm libkrb5-dev
- name: Install OS packages
run: |
sudo apt-get -y update
sudo apt-get install -y rpm libkrb5-dev
- name: Setup Python
uses: actions/setup-python@v2
with:
Expand All @@ -89,8 +99,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install RPM
run: sudo apt-get install -y rpm libkrb5-dev
- name: Install OS packages
run: |
sudo apt-get -y update
sudo apt-get install -y rpm libkrb5-dev
- name: Setup Python
uses: actions/setup-python@v2
with:
Expand Down

0 comments on commit 72fc4f6

Please sign in to comment.