Skip to content

Commit 18b4a7a

Browse files
SCG:1.0.0:NA #dev Added workflow
1 parent 0ed1fb1 commit 18b4a7a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Run Tests
2+
3+
on:
4+
pull_request: # Runs on pull requests
5+
branches:
6+
- dev
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: '3.x'
20+
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
25+
- name: Run tests with unittest
26+
run: |
27+
python -m unittest discover -s tests -p "test_*.py" -v
28+
env:
29+
PYTHONPATH: src # Adds src/ to the module search path

0 commit comments

Comments
 (0)