Skip to content

Commit 8109977

Browse files
Add unit tests for utils/process_result.py and pytest CI workflow
Co-authored-by: functionstackx <47992694+functionstackx@users.noreply.github.com>
1 parent 4f237a0 commit 8109977

3 files changed

Lines changed: 601 additions & 1 deletion

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Test Utils Process Result
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'utils/process_result.py'
7+
- 'utils/test_process_result.py'
8+
- '.github/workflows/test-utils-process-result.yml'
9+
push:
10+
branches:
11+
- main
12+
paths:
13+
- 'utils/process_result.py'
14+
- 'utils/test_process_result.py'
15+
- '.github/workflows/test-utils-process-result.yml'
16+
17+
jobs:
18+
test:
19+
if: github.event_name != 'pull_request' || github.event.pull_request.draft != true
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: read
23+
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v5
27+
28+
- name: Set up Python
29+
uses: actions/setup-python@v6
30+
with:
31+
python-version: '3.12'
32+
33+
- name: Install dependencies
34+
run: |
35+
python -m pip install --upgrade pip
36+
pip install pytest
37+
38+
- name: Run pytest
39+
run: |
40+
cd utils
41+
pytest test_process_result.py -v

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
**/__pycache__/**
2-
**/.coverage
2+
**/.coverage
3+
**/.pytest_cache/
4+
*.pyc
5+
*.pyo
6+
.coverage.*
7+
htmlcov/

0 commit comments

Comments
 (0)