Skip to content

Commit a380ef5

Browse files
committed
test group poetry and ci update
1 parent 87f9d7b commit a380ef5

File tree

4 files changed

+41
-30
lines changed

4 files changed

+41
-30
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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: |

.github/workflows/pypi.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

poetry.lock

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@ Flask-WTF = "^1.0.1"
1414
itsdangerous = "^2.1.2"
1515
Werkzeug = "^2.2.2"
1616
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]
2221
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"
2327

2428

2529
[build-system]

0 commit comments

Comments
 (0)