Skip to content

Commit e9406f0

Browse files
authored
Switch to hatch-test env (#171)
1 parent 74956e1 commit e9406f0

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@ jobs:
2828
with:
2929
fetch-depth: 0
3030
filter: blob:none
31-
- uses: actions/setup-python@v4
31+
- uses: actions/setup-python@v5
3232
with:
3333
python-version: ${{ matrix.python-version }}
3434
cache: pip
3535
- name: dependencies
3636
run: |
3737
pip install --upgrade pip wheel
38-
pip install .[test,typehints]
38+
pip install .[test,typehints] coverage-rich 'anyconfig[toml] >=0.14'
3939
- name: tests
4040
run: coverage run -m pytest --verbose --color=yes
4141
- name: show coverage
4242
run: coverage-rich report
4343
- name: upload coverage
44-
uses: codecov/codecov-action@v3
44+
uses: codecov/codecov-action@v4
4545
with:
4646
fail_ci_if_error: true
4747
token: c66a2830-d3c7-4ae7-a230-21aef89dcf65

pyproject.toml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ dev = ['pre-commit']
2828
test = [
2929
'pytest',
3030
'coverage',
31-
'coverage-rich',
32-
'anyconfig[toml] >=0.14', # coverage-rich uses anyconfig
3331
'legacy-api-wrap',
3432
'defusedxml', # sphinx[test] would also pull in cython
3533
]
@@ -100,17 +98,8 @@ features = ['doc']
10098
[tool.hatch.envs.docs.scripts]
10199
build = 'sphinx-build -M html docs docs/_build'
102100

103-
[[tool.hatch.envs.test.matrix]]
104-
python = ['3.9', '3.10', '3.11', '3.12']
105-
[tool.hatch.envs.test]
101+
[tool.hatch.envs.hatch-test]
106102
features = ['test', 'typehints']
107-
[tool.hatch.envs.test.scripts]
108-
run = 'pytest -vv {args}'
109-
cov = [
110-
'coverage run -m pytest -vv {args}',
111-
'coverage xml',
112-
'coverage-rich report',
113-
]
114103

115104
[tool.pytest.ini_options]
116105
addopts = [

0 commit comments

Comments
 (0)