Skip to content

Commit

Permalink
build: Use coverage directly, instead of pytest-cov. Restore pre-comm…
Browse files Browse the repository at this point in the history
…it requirement
  • Loading branch information
jpmckinney committed Sep 7, 2024
1 parent 7b25e1b commit 0c9149f
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ jobs:
cache: pip
cache-dependency-path: '**/requirements*.txt'
- run: pip install -r requirements_dev.txt
- run: pytest -W error --cov-report=lcov:coverage/lcov.info --cov extension_explorer
- run: coverage run --source=extension_explorer -m pytest -W error
- uses: coverallsapp/github-action@v2
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ docutils==0.20.1
# via
# myst-parser
# sphinx
exceptiongroup==1.2.2
# via cattrs
flask==3.0.0
# via
# -r requirements.in
Expand Down Expand Up @@ -145,6 +147,10 @@ sphinxcontrib-serializinghtml==1.1.9
# via sphinx
text-unidecode==1.3
# via python-slugify
tomli==2.0.1
# via mdformat
typing-extensions==4.12.2
# via cattrs
url-normalize==1.4.3
# via requests-cache
urllib3==2.2.2
Expand Down
3 changes: 2 additions & 1 deletion requirements_dev.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
-r requirements.txt
coverage
libsass
pre-commit
pytest
pytest-cov
pytest-flask
35 changes: 31 additions & 4 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ certifi==2024.7.4
# via
# -r requirements.txt
# requests
cfgv==3.4.0
# via pre-commit
charset-normalizer==3.1.0
# via
# -r requirements.txt
Expand All @@ -38,12 +40,21 @@ click==8.1.3
# -r requirements.txt
# flask
coverage==7.6.1
# via pytest-cov
# via -r requirements_dev.in
distlib==0.3.8
# via virtualenv
docutils==0.20.1
# via
# -r requirements.txt
# myst-parser
# sphinx
exceptiongroup==1.2.2
# via
# -r requirements.txt
# cattrs
# pytest
filelock==3.15.4
# via virtualenv
flask==3.0.0
# via
# -r requirements.txt
Expand All @@ -56,6 +67,8 @@ flask-env==2.0.0
# via -r requirements.txt
frozen-flask==1.0.1
# via -r requirements.txt
identify==2.6.0
# via pre-commit
idna==3.7
# via
# -r requirements.txt
Expand Down Expand Up @@ -120,6 +133,8 @@ mdurl==0.1.0
# markdown-it-py
myst-parser==2.0.0
# via -r requirements.txt
nodeenv==1.9.1
# via pre-commit
ocds-babel==0.3.5
# via -r requirements.txt
ocdsextensionregistry==0.3.8
Expand All @@ -143,19 +158,19 @@ platformdirs==4.2.0
# via
# -r requirements.txt
# requests-cache
# virtualenv
pluggy==0.13.1
# via pytest
pre-commit==3.8.0
# via -r requirements_dev.in
pygments==2.15.1
# via
# -r requirements.txt
# sphinx
pytest==7.2.0
# via
# -r requirements_dev.in
# pytest-cov
# pytest-flask
pytest-cov==4.0.0
# via -r requirements_dev.in
pytest-flask==1.3.0
# via -r requirements_dev.in
python-slugify==4.0.1
Expand All @@ -168,6 +183,7 @@ pyyaml==6.0.1
# via
# -r requirements.txt
# myst-parser
# pre-commit
requests==2.32.2
# via
# -r requirements.txt
Expand Down Expand Up @@ -221,6 +237,15 @@ text-unidecode==1.3
# via
# -r requirements.txt
# python-slugify
tomli==2.0.1
# via
# -r requirements.txt
# mdformat
# pytest
typing-extensions==4.12.2
# via
# -r requirements.txt
# cattrs
url-normalize==1.4.3
# via
# -r requirements.txt
Expand All @@ -230,6 +255,8 @@ urllib3==2.2.2
# -r requirements.txt
# requests
# requests-cache
virtualenv==20.26.3
# via pre-commit
werkzeug==3.0.3
# via
# -r requirements.txt
Expand Down

0 comments on commit 0c9149f

Please sign in to comment.