Skip to content

Commit 737aca4

Browse files
authored
Merge pull request #726 from elbeno/ci-python-reqs
👷 Improve installation of CI python requirements
2 parents 198fff4 + 57118de commit 737aca4

File tree

3 files changed

+35
-13
lines changed

3 files changed

+35
-13
lines changed

.github/workflows/unit_tests.yml

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,13 @@ jobs:
126126
- name: Install build tools
127127
run: |
128128
${{ matrix.install }}
129-
sudo apt install -y ninja-build
129+
sudo apt install -y ninja-build python3-venv python3-pip
130130
131-
- name: Install libclang for string catalog
131+
- name: Install python requirements for string catalog
132132
run: |
133133
python3 -m venv ${{github.workspace}}/test_venv
134134
source ${{github.workspace}}/test_venv/bin/activate
135-
pip install libclang
135+
pip install -r ${{github.workspace}}/tools/requirements.txt
136136
echo "${{github.workspace}}/test_venv/bin" >> $GITHUB_PATH
137137
138138
- name: Restore CPM cache
@@ -212,7 +212,14 @@ jobs:
212212
- name: Install build tools
213213
run: |
214214
${{ matrix.install }}
215-
sudo apt install -y ninja-build
215+
sudo apt install -y ninja-build python3-venv python3-pip
216+
217+
- name: Install python requirements for string catalog
218+
run: |
219+
python3 -m venv ${{github.workspace}}/test_venv
220+
source ${{github.workspace}}/test_venv/bin/activate
221+
pip install -r ${{github.workspace}}/tools/requirements.txt
222+
echo "${{github.workspace}}/test_venv/bin" >> $GITHUB_PATH
216223
217224
- name: Restore CPM cache
218225
env:
@@ -332,7 +339,14 @@ jobs:
332339
- name: Install build tools
333340
run: |
334341
${{ matrix.install }}
335-
sudo apt install -y ninja-build
342+
sudo apt install -y ninja-build python3-venv python3-pip
343+
344+
- name: Install python requirements for string catalog
345+
run: |
346+
python3 -m venv ${{github.workspace}}/test_venv
347+
source ${{github.workspace}}/test_venv/bin/activate
348+
pip install -r ${{github.workspace}}/tools/requirements.txt
349+
echo "${{github.workspace}}/test_venv/bin" >> $GITHUB_PATH
336350
337351
- name: Restore CPM cache
338352
env:
@@ -378,7 +392,14 @@ jobs:
378392

379393
- name: Install build tools
380394
run: |
381-
sudo apt update && sudo apt install -y gcc-${{env.DEFAULT_GCC_VERSION}} g++-${{env.DEFAULT_GCC_VERSION}} ninja-build valgrind
395+
sudo apt update && sudo apt install -y gcc-${{env.DEFAULT_GCC_VERSION}} g++-${{env.DEFAULT_GCC_VERSION}} ninja-build python3-venv python3-pip valgrind
396+
397+
- name: Install python requirements for string catalog
398+
run: |
399+
python3 -m venv ${{github.workspace}}/test_venv
400+
source ${{github.workspace}}/test_venv/bin/activate
401+
pip install -r ${{github.workspace}}/tools/requirements.txt
402+
echo "${{github.workspace}}/test_venv/bin" >> $GITHUB_PATH
382403
383404
- name: Restore CPM cache
384405
env:

.gitignore

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
/.idea
66
/.cache
77
/.DS_Store
8-
.clang-format
9-
.clang-tidy
10-
.cmake-format.yaml
11-
CMakePresets.json
8+
/.clang-format
9+
/.clang-tidy
10+
/.cmake-format.yaml
11+
/CMakePresets.json
1212
/toolchains
13-
mull.yml
14-
requirements.txt
15-
docs/puppeteer_config.json
13+
/mull.yml
14+
/requirements.txt
15+
/docs/puppeteer_config.json

tools/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
libclang==18.1.1

0 commit comments

Comments
 (0)