File tree Expand file tree Collapse file tree 14 files changed +16
-69
lines changed Expand file tree Collapse file tree 14 files changed +16
-69
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/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
9
5
on :
10
6
create :
73
69
- name : Install Python
74
70
uses : actions/setup-python@v5
75
71
with :
76
- python-version : ${{ env.PYTHON_VERSION }}
72
+ python-version-file : pyproject.toml
77
73
78
74
- name : Install Poetry
79
75
run : pip install poetry
@@ -104,7 +100,7 @@ jobs:
104
100
- name : Install Python
105
101
uses : actions/setup-python@v5
106
102
with :
107
- python-version : ${{ env.PYTHON_VERSION }}
103
+ python-version-file : pyproject.toml
108
104
109
105
- name : Install Poetry
110
106
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/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
9
5
on :
10
6
create :
101
97
- name : Install Python
102
98
uses : actions/setup-python@v5
103
99
with :
104
- python-version : ${{ env.PYTHON_VERSION }}
100
+ python-version-file : pyproject.toml
105
101
106
102
- name : Install Poetry
107
103
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/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
9
5
on :
10
6
create :
55
51
- name : Install Python
56
52
uses : actions/setup-python@v5
57
53
with :
58
- python-version : ${{ env.PYTHON_VERSION }}
54
+ python-version-file : pyproject.toml
59
55
60
56
- name : Install Poetry
61
57
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/test-python-poetry-task.md
2
2
name : Test 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/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
9
5
on :
10
6
create :
69
65
- name : Install Python
70
66
uses : actions/setup-python@v5
71
67
with :
72
- python-version : ${{ env.PYTHON_VERSION }}
68
+ python-version-file : pyproject.toml
73
69
74
70
- name : Install Poetry
75
71
run : pip install poetry
Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ The following development tools must be available in your local environment:
9
9
- [ ** Node.js** / ** npm** ] ( https://nodejs.org/en/download/ ) - Node.js dependencies management tool
10
10
- The ** Node.js** version in use is defined by the ` engines.node ` key of [ ` package.json ` ] ( ../package.json ) .
11
11
- [ ** Python** ] ( https://wiki.python.org/moin/BeginnersGuide/Download )
12
- - <!-- PYTHON_VERSION -->
13
- This project uses Python 3.9.x
12
+ - The ** Python** version in use is defined by the ` tool.poetry.dependencies.python ` key of [ ` pyproject.toml ` ] ( ../pyproject.toml ) .
14
13
- [ ** Poetry** ] ( https://python-poetry.org/docs/#installation ) - Python dependencies management tool
15
14
- [ ** Task** ] ( https://taskfile.dev/installation/ ) - task runner tool
16
15
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-mkdocs-task.md
2
2
name : Check Website
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/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
9
5
on :
10
6
create :
69
65
- name : Install Python
70
66
uses : actions/setup-python@v5
71
67
with :
72
- python-version : ${{ env.PYTHON_VERSION }}
68
+ python-version-file : pyproject.toml
73
69
74
70
- name : Install Poetry
75
71
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-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/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
9
5
on :
10
6
create :
73
69
- name : Install Python
74
70
uses : actions/setup-python@v5
75
71
with :
76
- python-version : ${{ env.PYTHON_VERSION }}
72
+ python-version-file : pyproject.toml
77
73
78
74
- name : Install Poetry
79
75
run : pip install poetry
@@ -104,7 +100,7 @@ jobs:
104
100
- name : Install Python
105
101
uses : actions/setup-python@v5
106
102
with :
107
- python-version : ${{ env.PYTHON_VERSION }}
103
+ python-version-file : pyproject.toml
108
104
109
105
- name : Install Poetry
110
106
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/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
9
5
on :
10
6
create :
101
97
- name : Install Python
102
98
uses : actions/setup-python@v5
103
99
with :
104
- python-version : ${{ env.PYTHON_VERSION }}
100
+ python-version-file : pyproject.toml
105
101
106
102
- name : Install Poetry
107
103
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/deploy-cobra-mkdocs-versioned-poetry.md
2
2
name : Deploy Website
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
on :
9
5
push :
10
6
branches :
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 : |
Original file line number Diff line number Diff line change 1
1
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/deploy-mkdocs-poetry.md
2
2
name : Deploy Website
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/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
9
5
on :
10
6
push :
33
29
- name : Install Python
34
30
uses : actions/setup-python@v5
35
31
with :
36
- python-version : ${{ env.PYTHON_VERSION }}
32
+ python-version-file : pyproject.toml
37
33
38
34
- name : Install Poetry
39
35
run : pip install poetry
You can’t perform that action at this time.
0 commit comments