Skip to content

Commit 6fb98ff

Browse files
committed
wip: see if python 3.7 can work with new poetry
1 parent 08acfc8 commit 6fb98ff

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

.github/actions/setup/action.yml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,55 @@
1-
name: "Set up repository for CI"
2-
description: "Install development dependencies"
1+
name: 'Set up repository for CI'
2+
description: 'Install development dependencies'
33

44
inputs:
55
python-version:
6-
description: "Python version to install"
7-
default: "3.12"
6+
description: 'Python version to install'
7+
default: '3.12'
88
poetry-version:
9-
description: "Poetry version to install"
10-
default: "1.6.1"
9+
description: 'Poetry version to install'
10+
default: '1.6.1'
1111
cache:
12-
description: "Cache directory"
13-
default: "${{ runner.temp }}/cache"
12+
description: 'Cache directory'
13+
default: '${{ runner.temp }}/cache'
1414

1515
runs:
16-
using: "composite"
16+
using: 'composite'
1717
steps:
18-
- name: "Set up Python"
18+
- name: 'Set up Python'
1919
id: setup-python
2020
uses: actions/setup-python@v4
2121
with:
22-
python-version: ${{ inputs.python-version }}
22+
python-version: |
23+
${{ inputs.python-version }}
24+
3.12
2325
24-
- name: "Set up dependency cache"
26+
- name: 'Set up dependency cache'
2527
uses: actions/cache@v3
2628
with:
27-
key: ${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ inputs.poetry-version }}-${{ hashFiles('poetry.lock') }}
29+
key: ${{ runner.os }}-${{ inputs.python-version }}-${{ inputs.poetry-version }}-${{ hashFiles('poetry.lock') }}
2830
path: ${{ inputs.cache }}
2931

30-
- name: "Set up PATH on POSIX"
32+
- name: 'Set up PATH on POSIX'
3133
if: ${{ runner.os != 'windows'}}
3234
shell: bash
3335
run: echo "${{ inputs.cache }}/tools/bin" >> $GITHUB_PATH
3436

35-
- name: "Set up PATH on Windows"
37+
- name: 'Set up PATH on Windows'
3638
if: ${{ runner.os == 'windows'}}
3739
shell: bash
3840
run: echo "${{ inputs.cache }}/tools/Scripts" >> $GITHUB_PATH
3941

40-
- name: "Install Poetry"
42+
- name: 'Install Poetry'
4143
shell: bash
4244
run: |
4345
if ! poetry --version; then
4446
"${{ steps.setup-python.outputs.python-path }}" -m venv "${{ inputs.cache }}/tools"
4547
pip install poetry==${{ inputs.poetry-version }}
4648
fi
4749
48-
- name: "Install development dependencies"
50+
- name: 'Install development dependencies'
4951
shell: bash
5052
run: |
5153
poetry config cache-dir "${{ inputs.cache }}/poetry"
54+
poetry env use ${{ inputs.python-version }}
5255
poetry install --sync

0 commit comments

Comments
 (0)