Skip to content

Commit 78c2a49

Browse files
committed
ci: install libviewer extra in the libcommon build
1 parent 49309c4 commit 78c2a49

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/_unit-tests-python.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
working-directory:
99
required: true
1010
type: string
11+
poetry-args:
12+
required: false
13+
type: string
14+
default: ""
1115
env:
1216
# required to get access to use a cached poetry venv in "/home/runner/.cache/pypoetry/virtualenvs"
1317
POETRY_VIRTUALENVS_IN_PROJECT: false
@@ -31,16 +35,16 @@ jobs:
3135
uses: actions/setup-python@v5
3236
with:
3337
python-version: ${{ env.python-version }}
34-
# cache: "poetry"
35-
# cache-dependency-path: |
36-
# ${{ inputs.working-directory }}/poetry.lock
38+
cache: "poetry"
39+
cache-dependency-path: |
40+
${{ inputs.working-directory }}/poetry.lock
3741
- name: Install packages
3842
run: sudo apt update; sudo apt install -y ffmpeg libavcodec-extra libsndfile1
3943
- name: Install dependencies
4044
# "poetry env use" is required: https://github.com/actions/setup-python/issues/374#issuecomment-1088938718
4145
run: |
4246
poetry env use "${{ env.python-version }}"
43-
poetry install
47+
poetry install ${{ inputs.poetry-args }}
4448
- name: Launch mongo
4549
env:
4650
MONGO_PORT: ${{ env.mongo-port }}

.github/workflows/l-libcommon.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ jobs:
2929
uses: ./.github/workflows/_unit-tests-python.yml
3030
with:
3131
working-directory: libs/libcommon
32+
poetry-args: "--with libviewer"
3233
secrets: inherit

0 commit comments

Comments
 (0)