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 11# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-python-task.md
22name : Check Python
33
4- env :
5- # See: https://github.com/actions/setup-python/tree/main#available-versions-of-python
6- PYTHON_VERSION : " 3.9"
7-
84# See: https://docs.github.com/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
95on :
106 create :
7369 - name : Install Python
7470 uses : actions/setup-python@v5
7571 with :
76- python-version : ${{ env.PYTHON_VERSION }}
72+ python-version-file : pyproject.toml
7773
7874 - name : Install Poetry
7975 run : pip install poetry
@@ -104,7 +100,7 @@ jobs:
104100 - name : Install Python
105101 uses : actions/setup-python@v5
106102 with :
107- python-version : ${{ env.PYTHON_VERSION }}
103+ python-version-file : pyproject.toml
108104
109105 - name : Install Poetry
110106 run : pip install poetry
Original file line number Diff line number Diff line change 11# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-yaml-task.md
22name : Check YAML
33
4- env :
5- # See: https://github.com/actions/setup-python/tree/main#available-versions-of-python
6- PYTHON_VERSION : " 3.9"
7-
84# See: https://docs.github.com/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
95on :
106 create :
10197 - name : Install Python
10298 uses : actions/setup-python@v5
10399 with :
104- python-version : ${{ env.PYTHON_VERSION }}
100+ python-version-file : pyproject.toml
105101
106102 - name : Install Poetry
107103 run : pip install poetry
Original file line number Diff line number Diff line change 11# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/spell-check-task.md
22name : Spell Check
33
4- env :
5- # See: https://github.com/actions/setup-python/tree/main#available-versions-of-python
6- PYTHON_VERSION : " 3.9"
7-
84# See: https://docs.github.com/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
95on :
106 create :
5551 - name : Install Python
5652 uses : actions/setup-python@v5
5753 with :
58- python-version : ${{ env.PYTHON_VERSION }}
54+ python-version-file : pyproject.toml
5955
6056 - name : Install Poetry
6157 run : pip install poetry
Original file line number Diff line number Diff line change 11# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/test-python-poetry-task.md
22name : Test Python
33
4- env :
5- # See: https://github.com/actions/setup-python/tree/main#available-versions-of-python
6- PYTHON_VERSION : " 3.9"
7-
84# See: https://docs.github.com/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
95on :
106 create :
6965 - name : Install Python
7066 uses : actions/setup-python@v5
7167 with :
72- python-version : ${{ env.PYTHON_VERSION }}
68+ python-version-file : pyproject.toml
7369
7470 - name : Install Poetry
7571 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:
99- [ ** Node.js** / ** npm** ] ( https://nodejs.org/en/download/ ) - Node.js dependencies management tool
1010 - The ** Node.js** version in use is defined by the ` engines.node ` key of [ ` package.json ` ] ( ../package.json ) .
1111- [ ** 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 ) .
1413- [ ** Poetry** ] ( https://python-poetry.org/docs/#installation ) - Python dependencies management tool
1514- [ ** Task** ] ( https://taskfile.dev/installation/ ) - task runner tool
1615
Original file line number Diff line number Diff line change 11# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-mkdocs-task.md
22name : Check Website
33
4- env :
5- # See: https://github.com/actions/setup-python/tree/main#available-versions-of-python
6- PYTHON_VERSION : " 3.9"
7-
84# See: https://docs.github.com/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
95on :
106 create :
6965 - name : Install Python
7066 uses : actions/setup-python@v5
7167 with :
72- python-version : ${{ env.PYTHON_VERSION }}
68+ python-version-file : pyproject.toml
7369
7470 - name : Install Poetry
7571 run : pip install poetry
Original file line number Diff line number Diff line change 11# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-python-task.md
22name : Check Python
33
4- env :
5- # See: https://github.com/actions/setup-python/tree/main#available-versions-of-python
6- PYTHON_VERSION : " 3.9"
7-
84# See: https://docs.github.com/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
95on :
106 create :
7369 - name : Install Python
7470 uses : actions/setup-python@v5
7571 with :
76- python-version : ${{ env.PYTHON_VERSION }}
72+ python-version-file : pyproject.toml
7773
7874 - name : Install Poetry
7975 run : pip install poetry
@@ -104,7 +100,7 @@ jobs:
104100 - name : Install Python
105101 uses : actions/setup-python@v5
106102 with :
107- python-version : ${{ env.PYTHON_VERSION }}
103+ python-version-file : pyproject.toml
108104
109105 - name : Install Poetry
110106 run : pip install poetry
Original file line number Diff line number Diff line change 11# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-yaml-task.md
22name : Check YAML
33
4- env :
5- # See: https://github.com/actions/setup-python/tree/main#available-versions-of-python
6- PYTHON_VERSION : " 3.9"
7-
84# See: https://docs.github.com/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
95on :
106 create :
10197 - name : Install Python
10298 uses : actions/setup-python@v5
10399 with :
104- python-version : ${{ env.PYTHON_VERSION }}
100+ python-version-file : pyproject.toml
105101
106102 - name : Install Poetry
107103 run : pip install poetry
Original file line number Diff line number Diff line change 11# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/deploy-cobra-mkdocs-versioned-poetry.md
22name : Deploy Website
33
4- env :
5- # See: https://github.com/actions/setup-python/tree/main#available-versions-of-python
6- PYTHON_VERSION : " 3.9"
7-
84on :
95 push :
106 branches :
7066 - name : Install Python
7167 uses : actions/setup-python@v5
7268 with :
73- python-version : ${{ env.PYTHON_VERSION }}
69+ python-version-file : pyproject.toml
7470
7571 - name : Install Poetry
7672 run : |
Original file line number Diff line number Diff line change 11# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/deploy-mkdocs-poetry.md
22name : Deploy Website
33
4- env :
5- # See: https://github.com/actions/setup-python/tree/main#available-versions-of-python
6- PYTHON_VERSION : " 3.9"
7-
84# See: https://docs.github.com/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
95on :
106 push :
3329 - name : Install Python
3430 uses : actions/setup-python@v5
3531 with :
36- python-version : ${{ env.PYTHON_VERSION }}
32+ python-version-file : pyproject.toml
3733
3834 - name : Install Poetry
3935 run : pip install poetry
You can’t perform that action at this time.
0 commit comments