Skip to content

Commit edf7868

Browse files
committed
update(github actions)
1 parent 2cc4faa commit edf7868

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.github/workflows/package-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ jobs:
4343
run: pip install hatch
4444

4545
- name: Run tests
46-
run: hatch run test
46+
run: hatch run test:pytest
4747

4848

pyproject.toml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ classifiers = [
2424
"Programming Language :: Python :: Implementation :: CPython",
2525
"Programming Language :: Python :: Implementation :: PyPy",
2626
]
27-
dependencies = []
27+
dependencies = [
28+
"pytest",
29+
]
2830

2931
[project.urls]
3032
Documentation = "https://github.com/Rashicom/meow#readme"
@@ -50,12 +52,19 @@ omit = [
5052
]
5153

5254
[tool.coverage.paths]
53-
meow = ["meow", "*/src/meow"]
54-
tests = ["tests", "*/meow/tests"]
55+
meow = ["meow", "*/meow"]
56+
tests = ["tests", "*/tests"]
5557

5658
[tool.coverage.report]
5759
exclude_lines = [
5860
"no cov",
5961
"if __name__ == .__main__.:",
6062
"if TYPE_CHECKING:",
6163
]
64+
65+
66+
[tool.hatch.envs.test]
67+
dependencies = [
68+
"pytest",
69+
"pytest-cov"
70+
]

tests/test_module.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
def test_simple():
3+
assert 1==1

0 commit comments

Comments
 (0)