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:
2222 uses : actions/setup-python@v1
2323 with :
2424 python-version : ${{ matrix.python-version }}
25+ - name : Install poetry
26+ uses : abatilo/actions-poetry@v2
27+ with :
28+ poetry-version : 1.2.2
2529 - name : Install dependencies
2630 run : |
27- python -m pip install --upgrade pip poetry
28- poetry install --no-root
31+ poetry install --no-root --with=test
2932 pip list
3033 - name : Lint with Flake8
3134 run : |
Original file line number Diff line number Diff line change @@ -14,10 +14,14 @@ jobs:
1414 uses : actions/setup-python@v2
1515 with :
1616 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
1721 - name : Install dependencies
1822 run : |
19- python -m pip install --upgrade pip poetry
2023 poetry install --no-root
24+ pip list
2125 - name : Set env
2226 run : echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
2327 - name : Test
Original file line number Diff line number Diff line change @@ -14,12 +14,16 @@ Flask-WTF = "^1.0.1"
1414itsdangerous = " ^2.1.2"
1515Werkzeug = " ^2.2.2"
1616Jinja2 = " ^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 ]
2221codecov = " ^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"
2327
2428
2529[build-system ]
You can’t perform that action at this time.
0 commit comments