From fb79bf24600ce6064c45ab0ad27eaf738ef502e5 Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Tue, 14 Nov 2023 08:53:38 +1000 Subject: [PATCH] [ci] fix install of OS packages in CI workflows 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. --- .github/workflows/docs.yml | 6 ++++-- .github/workflows/tox-test.yml | 30 ++++++++++++++++++++---------- 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 91cfa61..c5cca2f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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 libkrb5-dev + - name: Install OS packages + run: | + sudo apt-get -y update + sudo apt-get install -y libkrb5-dev - name: Install Tox run: pip install tox - name: Run Tox diff --git a/.github/workflows/tox-test.yml b/.github/workflows/tox-test.yml index 3d88ddc..42ffa4f 100644 --- a/.github/workflows/tox-test.yml +++ b/.github/workflows/tox-test.yml @@ -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: @@ -21,8 +23,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Install RPM - run: sudo apt-get install -y rpm + - name: Install OS packages + run: | + sudo apt-get -y update + sudo apt-get install -y rpm - name: Setup Python uses: actions/setup-python@v2 with: @@ -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: @@ -56,8 +62,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Install RPM - run: sudo apt-get install -y rpm + - name: Install OS packages + run: | + sudo apt-get -y update + sudo apt-get install -y rpm - name: Setup Python uses: actions/setup-python@v2 with: @@ -70,8 +78,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: