Skip to content

Commit a66ac44

Browse files
committed
Github workflows should read pip packages and versions from common.json.
Fixes #3423
1 parent ee260eb commit a66ac44

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,9 @@ jobs:
124124
if: ${{ contains(matrix.env.GATE, 'style') }}
125125
run: |
126126
sudo apt install python-pip python-setuptools
127-
sudo pip install astroid==1.1.0
128-
sudo pip install pylint==1.1.0
127+
cat common.json |
128+
jq -r '.deps.common.packages | to_entries[] | select(.key | startswith("pip:")) | (.key | split(":")[1]) + .value' |
129+
xargs sudo pip install
129130
- name: Build GraalVM and run gate
130131
env: ${{ matrix.env }}
131132
run: |

common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"MX_PYTHON": "python3"
3333
},
3434
"packages": {
35-
"pip:logilab-common ": "==1.4.4",
35+
"pip:logilab-common": "==1.4.4",
3636
"pip:pylint": "==1.9.3",
3737
"pip:ninja_syntax": "==1.7.2"
3838
}

0 commit comments

Comments
 (0)