Skip to content

Commit 8f906d8

Browse files
committed
Added get test id feature
1 parent 60c96bc commit 8f906d8

60 files changed

Lines changed: 23 additions & 1 deletion

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/system.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@ jobs:
2222
run: uv run commit0 clone simpy
2323
- name: Setup
2424
run: uv run commit0 build simpy
25+
- name: Get tests
26+
run: uv run commit0 get-tests simpy
2527
- name: Test
2628
run: uv run commit0 test-reference simpy tests/test_event.py::test_succeed

commit0/__main__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import commit0.harness.run_pytest_ids
2+
import commit0.harness.get_pytest_ids
23
import commit0.harness.build
34
import commit0.harness.setup
45
import copy
@@ -50,6 +51,9 @@ def main() -> None:
5051
config.repo_split,
5152
config.num_workers,
5253
)
54+
elif command == "get-tests":
55+
repo = sys.argv[2]
56+
commit0.harness.get_pytest_ids.main(repo)
5357
elif command == "test" or command == "test-reference":
5458
repo = sys.argv[2]
5559
test_ids = sys.argv[3]
7.87 KB
Binary file not shown.
17.3 KB
Binary file not shown.
5.46 KB
Binary file not shown.
1.08 KB
Binary file not shown.
3.16 KB
Binary file not shown.
5.24 KB
Binary file not shown.
4.38 KB
Binary file not shown.
1.14 KB
Binary file not shown.

0 commit comments

Comments
 (0)