Skip to content

Commit

Permalink
[CI] Update apt repositories before installing dependencies
Browse files Browse the repository at this point in the history
This should fix some transient CI failures when package versions are
removed from the remote repositories.

Fixes #1055
  • Loading branch information
speth authored and ischoegl committed Jun 12, 2021
1 parent e60f513 commit 37e37a1
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ jobs:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install Apt dependencies
run: sudo apt-get install libboost-dev gfortran
run: |
sudo apt update
sudo apt install libboost-dev gfortran
- name: Upgrade pip
run: python3 -m pip install -U pip setuptools wheel
- name: Install Python dependencies
Expand Down Expand Up @@ -106,7 +108,8 @@ jobs:
architecture: x64
- name: Install Apt dependencies
run: |
sudo apt-get install libboost-dev gfortran liblapack-dev libblas-dev libsundials-dev
sudo apt update
sudo apt install libboost-dev gfortran liblapack-dev libblas-dev libsundials-dev
- name: Upgrade pip
run: python3 -m pip install -U pip setuptools wheel
- name: Install Python dependencies
Expand Down Expand Up @@ -141,7 +144,9 @@ jobs:
python-version: '3.8'
architecture: x64
- name: Install Apt dependencies
run: sudo apt-get install libboost-dev doxygen graphviz
run: |
sudo apt update
sudo apt install libboost-dev doxygen graphviz
- name: Upgrade pip
run: python3 -m pip install -U pip setuptools wheel
- name: Install Python dependencies
Expand Down Expand Up @@ -189,7 +194,9 @@ jobs:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install Apt dependencies
run: sudo apt-get install libboost-dev gfortran graphviz liblapack-dev libblas-dev
run: |
sudo apt update
sudo apt install libboost-dev gfortran graphviz liblapack-dev libblas-dev
- name: Upgrade pip
run: python3 -m pip install -U pip setuptools wheel
- name: Install Python dependencies
Expand Down Expand Up @@ -262,7 +269,9 @@ jobs:
python-version: '3.8'
architecture: x64
- name: Install Apt dependencies
run: sudo apt-get install libboost-dev liblapack-dev libblas-dev
run: |
sudo apt update
sudo apt install libboost-dev liblapack-dev libblas-dev
- name: Upgrade pip
run: python3 -m pip install -U pip setuptools wheel
- name: Install Python dependencies
Expand Down

0 comments on commit 37e37a1

Please sign in to comment.