File tree Expand file tree Collapse file tree 4 files changed +41
-30
lines changed Expand file tree Collapse file tree 4 files changed +41
-30
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,13 @@ jobs:
22
22
uses : actions/setup-python@v1
23
23
with :
24
24
python-version : ${{ matrix.python-version }}
25
+ - name : Install poetry
26
+ uses : abatilo/actions-poetry@v2
27
+ with :
28
+ poetry-version : 1.2.2
25
29
- name : Install dependencies
26
30
run : |
27
- python -m pip install --upgrade pip poetry
28
- poetry install --no-root
31
+ poetry install --no-root --with=test
29
32
pip list
30
33
- name : Lint with Flake8
31
34
run : |
Original file line number Diff line number Diff line change @@ -14,10 +14,14 @@ jobs:
14
14
uses : actions/setup-python@v2
15
15
with :
16
16
python-version : ' 3.7 - 3.10.7'
17
+ - name : Install poetry
18
+ uses : abatilo/actions-poetry@v2
19
+ with :
20
+ poetry-version : 1.2.2
17
21
- name : Install dependencies
18
22
run : |
19
- python -m pip install --upgrade pip poetry
20
23
poetry install --no-root
24
+ pip list
21
25
- name : Set env
22
26
run : echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
23
27
- name : Test
Original file line number Diff line number Diff line change @@ -14,12 +14,16 @@ Flask-WTF = "^1.0.1"
14
14
itsdangerous = " ^2.1.2"
15
15
Werkzeug = " ^2.2.2"
16
16
Jinja2 = " ^3.1.2"
17
- pytest = " ^7.1.3"
18
- pytest-mock = " ^3.10.0"
19
- pytest-cov = " ^4.0.0"
20
- coverage = " ^6.5.0"
21
- flake8 = " ^5.0.4"
17
+
18
+ [tool .poetry .group .test ]
19
+
20
+ [tool .poetry .group .test .dependencies ]
22
21
codecov = " ^2.1.12"
22
+ flake8 = " ^5.0.4"
23
+ coverage = " ^6.5.0"
24
+ pytest-cov = " ^4.0.0"
25
+ pytest-mock = " ^3.10.0"
26
+ pytest = " ^7.1.3"
23
27
24
28
25
29
[build-system ]
You can’t perform that action at this time.
0 commit comments