File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments