File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 88 working-directory :
99 required : true
1010 type : string
11+ poetry-args :
12+ required : false
13+ type : string
14+ default : " "
1115env :
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 }}
Original file line number Diff line number Diff line change 2929 uses : ./.github/workflows/_unit-tests-python.yml
3030 with :
3131 working-directory : libs/libcommon
32+ poetry-args : " --with libviewer"
3233 secrets : inherit
You can’t perform that action at this time.
0 commit comments