File tree Expand file tree Collapse file tree 4 files changed +5
-16
lines changed Expand file tree Collapse file tree 4 files changed +5
-16
lines changed Original file line number Diff line number Diff line change 1
1
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-python-task.md
2
2
name : Check Python
3
3
4
- env :
5
- # See: https://github.com/actions/setup-python/tree/main#available-versions-of-python
6
- PYTHON_VERSION : " 3.9"
7
-
8
4
# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
9
5
on :
10
6
create :
70
66
- name : Install Python
71
67
uses : actions/setup-python@v5
72
68
with :
73
- python-version : ${{ env.PYTHON_VERSION }}
69
+ python-version-file : pyproject.toml
74
70
75
71
- name : Install Poetry
76
72
run : pip install poetry
99
95
- name : Install Python
100
96
uses : actions/setup-python@v5
101
97
with :
102
- python-version : ${{ env.PYTHON_VERSION }}
98
+ python-version-file : pyproject.toml
103
99
104
100
- name : Install Poetry
105
101
run : pip install poetry
Original file line number Diff line number Diff line change 1
1
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-yaml-task.md
2
2
name : Check YAML
3
3
4
- env :
5
- # See: https://github.com/actions/setup-python/tree/main#available-versions-of-python
6
- PYTHON_VERSION : " 3.9"
7
-
8
4
# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
9
5
on :
10
6
create :
98
94
- name : Install Python
99
95
uses : actions/setup-python@v5
100
96
with :
101
- python-version : ${{ env.PYTHON_VERSION }}
97
+ python-version-file : pyproject.toml
102
98
103
99
- name : Install Poetry
104
100
run : pip install poetry
Original file line number Diff line number Diff line change 1
1
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/spell-check-task.md
2
2
name : Spell Check
3
3
4
- env :
5
- # See: https://github.com/actions/setup-python/tree/main#available-versions-of-python
6
- PYTHON_VERSION : " 3.9"
7
-
8
4
# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
9
5
on :
10
6
create :
52
48
- name : Install Python
53
49
uses : actions/setup-python@v5
54
50
with :
55
- python-version : ${{ env.PYTHON_VERSION }}
51
+ python-version-file : pyproject.toml
56
52
57
53
- name : Install Poetry
58
54
run : pip install poetry
Original file line number Diff line number Diff line change @@ -189,6 +189,7 @@ The following development tools must be available in your local environment:
189
189
- [ ** Task** ] ( https://taskfile.dev/installation/ )
190
190
- [ ** Node.js** ] ( https://nodejs.dev/en/download/ )
191
191
- [ ** Python** ] ( https://www.python.org/downloads/ )
192
+ - The ** Python** version in use is defined in the ` tool.poetry.dependencies ` field of [ ` pyproject.toml ` ] ( ../pyproject.toml ) .
192
193
- [ ** Poetry** ] ( https://python-poetry.org/docs/#installation )
193
194
194
195
### Running Checks
You can’t perform that action at this time.
0 commit comments