|
1 |
| -name: "Set up repository for CI" |
2 |
| -description: "Install development dependencies" |
| 1 | +name: 'Set up repository for CI' |
| 2 | +description: 'Install development dependencies' |
3 | 3 |
|
4 | 4 | inputs:
|
5 | 5 | python-version:
|
6 |
| - description: "Python version to install" |
7 |
| - default: "3.12" |
| 6 | + description: 'Python version to install' |
| 7 | + default: '3.12' |
8 | 8 | poetry-version:
|
9 |
| - description: "Poetry version to install" |
10 |
| - default: "1.6.1" |
| 9 | + description: 'Poetry version to install' |
| 10 | + default: '1.6.1' |
11 | 11 | cache:
|
12 |
| - description: "Cache directory" |
13 |
| - default: "${{ runner.temp }}/cache" |
| 12 | + description: 'Cache directory' |
| 13 | + default: '${{ runner.temp }}/cache' |
14 | 14 |
|
15 | 15 | runs:
|
16 |
| - using: "composite" |
| 16 | + using: 'composite' |
17 | 17 | steps:
|
18 |
| - - name: "Set up Python" |
| 18 | + - name: 'Set up Python' |
19 | 19 | id: setup-python
|
20 | 20 | uses: actions/setup-python@v4
|
21 | 21 | with:
|
22 |
| - python-version: ${{ inputs.python-version }} |
| 22 | + python-version: | |
| 23 | + ${{ inputs.python-version }} |
| 24 | + 3.12 |
23 | 25 |
|
24 |
| - - name: "Set up dependency cache" |
| 26 | + - name: 'Set up dependency cache' |
25 | 27 | uses: actions/cache@v3
|
26 | 28 | 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') }} |
28 | 30 | path: ${{ inputs.cache }}
|
29 | 31 |
|
30 |
| - - name: "Set up PATH on POSIX" |
| 32 | + - name: 'Set up PATH on POSIX' |
31 | 33 | if: ${{ runner.os != 'windows'}}
|
32 | 34 | shell: bash
|
33 | 35 | run: echo "${{ inputs.cache }}/tools/bin" >> $GITHUB_PATH
|
34 | 36 |
|
35 |
| - - name: "Set up PATH on Windows" |
| 37 | + - name: 'Set up PATH on Windows' |
36 | 38 | if: ${{ runner.os == 'windows'}}
|
37 | 39 | shell: bash
|
38 | 40 | run: echo "${{ inputs.cache }}/tools/Scripts" >> $GITHUB_PATH
|
39 | 41 |
|
40 |
| - - name: "Install Poetry" |
| 42 | + - name: 'Install Poetry' |
41 | 43 | shell: bash
|
42 | 44 | run: |
|
43 | 45 | if ! poetry --version; then
|
44 | 46 | "${{ steps.setup-python.outputs.python-path }}" -m venv "${{ inputs.cache }}/tools"
|
45 | 47 | pip install poetry==${{ inputs.poetry-version }}
|
46 | 48 | fi
|
47 | 49 |
|
48 |
| - - name: "Install development dependencies" |
| 50 | + - name: 'Install development dependencies' |
49 | 51 | shell: bash
|
50 | 52 | run: |
|
51 | 53 | poetry config cache-dir "${{ inputs.cache }}/poetry"
|
| 54 | + poetry env use ${{ inputs.python-version }} |
52 | 55 | poetry install --sync
|
0 commit comments