Skip to content

Commit 2ff24b9

Browse files
committed
ci: use poetry for unit tests
1 parent 0830bd8 commit 2ff24b9

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/unit-test.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,19 @@ jobs:
2626

2727
- name: Install dependencies
2828
run: |
29+
# update pip
2930
python -m pip install --upgrade pip
30-
pip install pytest coverage codecov requests responses
31+
32+
# install poetry
33+
python -m pip install poetry
34+
35+
# install all dependencies using poetry
36+
poetry install --no-root
3137
3238
- name: Test with pytest
3339
run: |
3440
# run tests with coverage and pytest
35-
coverage run -m pytest
36-
coverage report -m --omit "*/site-packages/*.py"
37-
coverage html --omit "*/site-packages/*.py"
38-
# codecov -t ${{ secrets.CODECOV_TOKEN }}
41+
poetry run coverage run -m pytest
42+
poetry run coverage report -m --omit "*/site-packages/*.py",*/tests/*
43+
poetry run coverage html --omit "*/site-packages/*.py",*/tests/*
44+
poetry run coverage xml

0 commit comments

Comments
 (0)