Skip to content

Commit b4e5d17

Browse files
committed
feat: add coverage to ci
1 parent 414d1af commit b4e5d17

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,11 @@ jobs:
2727
2828
- name: Run tox
2929
run: tox
30+
31+
- name: Upload coverage to Codecov
32+
uses: codecov/codecov-action@v4
33+
with:
34+
file: ./coverage.xml
35+
flags: unittests
36+
name: codecov-umbrella
37+
fail_ci_if_error: false

.travis.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

setup.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,12 @@
1919
python_requires=">=3.11",
2020
install_requires=["rfc3339>=6.1", "requests"],
2121
classifiers=[
22-
"Development Status :: 4 - Beta",
22+
"Development Status :: 4 - Release",
2323
"Intended Audience :: Developers",
2424
"License :: OSI Approved :: MIT License",
2525
"Operating System :: OS Independent",
2626
"Programming Language :: Python",
27-
"Programming Language :: Python :: 3",
28-
"Programming Language :: Python :: 3.6",
29-
"Programming Language :: Python :: 3.7",
30-
"Programming Language :: Python :: 3.8",
27+
"Programming Language :: Python :: 3.11",
3128
"Topic :: Software Development :: Libraries :: Python Modules",
3229
"Topic :: System :: Logging",
3330
"Topic :: Internet :: WWW/HTTP",

tox.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ deps =
1111
pytest
1212
coverage
1313
freezegun
14-
commands = coverage run -m pytest []
14+
commands =
15+
coverage run -m pytest []
16+
coverage report
17+
coverage html
1518

1619
[testenv:ruff]
1720
skip_install = true

0 commit comments

Comments
 (0)