File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 1+ ---
12name : Set up poetry
3+
24description : Install poetry and python dependencies
5+
36inputs :
47 groups :
58 description : " Poetry dependencies groups."
69 required : true
710 python-version :
811 description : " Python version."
912 required : true
13+
1014runs :
1115 using : " composite"
1216 steps :
2933 uses : actions/cache@v3
3034 with :
3135 path : .venv
32- key : venv-${{ inputs.python-version }}-${{ hashFiles('**/poetry.lock') }}-${{ inputs.groups }}
36+ key : venv-${{ inputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
3337
3438 - name : Install Poetry dependencies
3539 shell : bash
36- run : poetry install --no-interaction --no-root --only main, ${{ inputs.groups }}
40+ run : poetry install --no-interaction --no-root --only ${{ inputs.groups }}
3741 if : steps.cache-deps.outputs.cache-hit != 'true'
Original file line number Diff line number Diff line change 2929 - name : Set up Poetry
3030 uses : ./.github/actions/setup-poetry
3131 with :
32- groups : test
32+ groups : main, test
3333 python-version : ${{ matrix.python-version }}
3434
3535 - name : Print versions
Original file line number Diff line number Diff line change 11---
2-
32name : python-publish
43
54on :
@@ -15,17 +14,17 @@ jobs:
1514 steps :
1615 - uses : actions/checkout@v4
1716
18- - name : Set up python 3.11
17+ - name : Set up python 3.12
1918 id : setup-python
2019 uses : actions/setup-python@v5
2120 with :
22- python-version : ' 3.11 '
21+ python-version : " 3.12 "
2322
2423 - name : Set up Poetry
2524 uses : ./.github/actions/setup-poetry
2625 with :
27- groups : ' ' # will only install the main group
28- python-version : ' 3.11 '
26+ groups : main
27+ python-version : " 3.12 "
2928
3029 - name : Publish package
3130 run : poetry publish --build
You can’t perform that action at this time.
0 commit comments