Skip to content

Commit 36bd370

Browse files
authored
Merge pull request #10 from Deric-W/hatch-test
use hatch test
2 parents f830849 + 842fa31 commit 36bd370

File tree

2 files changed

+9
-21
lines changed

2 files changed

+9
-21
lines changed

.github/workflows/Tests.yaml

+5-3
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,20 @@ jobs:
1717
3.10
1818
3.11
1919
3.12
20+
3.13
21+
cache: pip
2022

2123
- name: Install Hatch
22-
run: python -m pip install hatch
24+
run: python -m pip install "hatch >= 1.10.0"
2325

2426
- name: Perform release check
2527
run: hatch run lint:release
2628

2729
- name: Run tests
28-
run: hatch run test:cov --verbose
30+
run: hatch test --all --cover-quiet --verbose
2931

3032
- name: Generate report
31-
run: hatch env run -e test.py3.12 coverage xml
33+
run: hatch env run -e hatch-test.py3.12 coverage xml
3234

3335
- name: Upload coverage
3436
uses: codecov/codecov-action@v5

pyproject.toml

+4-18
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,11 @@ lambda-repl = "lambda_repl.main:main_cli"
3737
requires = ["hatchling"]
3838
build-backend = "hatchling.build"
3939

40-
[tool.hatch.envs.test]
41-
dependencies = [
42-
"coverage[toml] == 7.*"
43-
]
44-
45-
[tool.hatch.envs.test.scripts]
46-
test = "python -m unittest discover {args}"
47-
cov-run = "coverage run -m unittest discover {args}"
48-
cov-report = [
49-
"- coverage combine",
50-
"coverage report"
51-
]
52-
cov = [
53-
"cov-run",
54-
"cov-report"
55-
]
40+
[tool.hatch.envs.hatch-test]
41+
installer = "pip"
5642

57-
[[tool.hatch.envs.test.matrix]]
58-
python = ["3.10", "3.11", "3.12"]
43+
[[tool.hatch.envs.hatch-test.matrix]]
44+
python = ["3.10", "3.11", "3.12", "3.13"]
5945

6046
[tool.hatch.envs.lint]
6147
dependencies = [

0 commit comments

Comments
 (0)