File tree Expand file tree Collapse file tree
actions/setup-python-poetry Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : " Setup Python and Poetry"
2+ description : " Sets up Python environment and installs Poetry with dependencies"
3+ inputs :
4+ python-version :
5+ description : " Python version to use"
6+ required : true
7+
8+ runs :
9+ using : " composite"
10+ steps :
11+ - name : " Set up Python"
12+ uses : actions/setup-python@v4
13+ with :
14+ python-version : ${{ inputs.python-version }}
15+
16+ - name : " Install Poetry"
17+ uses : snok/install-poetry@v1
18+ with :
19+ version : latest
20+ virtualenvs-create : true
21+ virtualenvs-in-project : true
22+
23+ - name : " Install Poetry dependencies"
24+ shell : bash
25+ run : |
26+ cd lambdas/mesh-poll && poetry install
Original file line number Diff line number Diff line change @@ -62,16 +62,11 @@ jobs:
6262 steps :
6363 - name : " Checkout code"
6464 uses : actions/checkout@v5
65- - name : " Set up Python"
66- uses : actions/setup-python@v4
65+ - name : " Setup Python and Poetry "
66+ uses : ./.github/ actions/setup-python-poetry
6767 with :
6868 python-version : ${{ inputs.python_version }}
69- - name : " Install Poetry"
70- uses : snok/install-poetry@v1
71- with :
72- version : latest
73- virtualenvs-create : true
74- virtualenvs-in-project : true
69+ working-directory : " lambdas/mesh-poll"
7570 - name : " Repo setup"
7671 run : |
7772 npm ci
@@ -100,16 +95,11 @@ jobs:
10095 steps :
10196 - name : " Checkout code"
10297 uses : actions/checkout@v5
103- - name : " Set up Python"
104- uses : actions/setup-python@v4
98+ - name : " Setup Python and Poetry "
99+ uses : ./.github/ actions/setup-python-poetry
105100 with :
106101 python-version : ${{ inputs.python_version }}
107- - name : " Install Poetry"
108- uses : snok/install-poetry@v1
109- with :
110- version : latest
111- virtualenvs-create : true
112- virtualenvs-in-project : true
102+ working-directory : " lambdas/mesh-poll"
113103 - name : " Repo setup"
114104 run : |
115105 npm ci
Original file line number Diff line number Diff line change @@ -9,13 +9,11 @@ python = "^3.9"
99structlog = " ^21.5.0"
1010py-mock-mesh = {path = " ../../utils/py-mock-mesh" , develop = false }
1111
12- [tool .poetry .dev- dependencies ]
12+ [tool .poetry .group . dev . dependencies ]
1313autopep8 = " ^2.0.2"
1414pylint = " ^2.17.4"
1515pytest = " ^7.0.1"
1616pytest-cov = " ^4.0.0"
17-
18- [tool .poetry .group .dev .dependencies ]
1917jake = " ^3.0.1"
2018
2119[tool .coverage .run ]
You can’t perform that action at this time.
0 commit comments