Skip to content

Commit de14203

Browse files
authored
Merge pull request #423 from ATOMScience-org/bug_cli_apt-get_update
This updates apt-get before installing packages in case mirrors are out of date.
2 parents a37af47 + 494ad92 commit de14203

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
python-version: ["3.9"]
1111

1212
steps:
13+
- name: Update apt cache
14+
run: |
15+
sudo apt-get update || sudo apt-get update --fix-missing
1316
- name: System Dependencies
1417
run: |
1518
sudo apt install -y build-essential \

.github/workflows/pytest.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
steps:
1919
- name: System Dependencies
2020
run: |
21+
sudo apt-get update
2122
sudo apt install -y build-essential \
2223
libcairo2-dev \
2324
pkg-config \
@@ -64,6 +65,7 @@ jobs:
6465
steps:
6566
- name: System Dependencies
6667
run: |
68+
sudo apt-get update
6769
sudo apt install -y build-essential \
6870
libcairo2-dev \
6971
pkg-config \
@@ -110,6 +112,7 @@ jobs:
110112
steps:
111113
- name: System Dependencies
112114
run: |
115+
sudo apt-get update
113116
sudo apt install -y build-essential \
114117
libcairo2-dev \
115118
pkg-config \
@@ -156,6 +159,7 @@ jobs:
156159
steps:
157160
- name: System Dependencies
158161
run: |
162+
sudo apt-get update
159163
sudo apt install -y build-essential \
160164
libcairo2-dev \
161165
pkg-config \
@@ -202,6 +206,7 @@ jobs:
202206
steps:
203207
- name: System Dependencies
204208
run: |
209+
sudo apt-get update
205210
sudo apt install -y build-essential \
206211
libcairo2-dev \
207212
pkg-config \

0 commit comments

Comments
 (0)