Skip to content

Commit ccd7c66

Browse files
authored
Merge pull request #22 from TaskarCenterAtUW/cicd-unittests
Added unit tests to cicd
2 parents b03bf73 + 9ee32a3 commit ccd7c66

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: Tests
3+
4+
#############################
5+
# Start the job on all push #
6+
#############################
7+
on:
8+
push:
9+
branches-ignore:
10+
- '**'
11+
# Remove the line above to run when pushing to master
12+
pull_request:
13+
branches: [develop]
14+
15+
jobs:
16+
Tests:
17+
name: Unit tests
18+
# Set the agent to run on
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v3
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: "3.10"
28+
29+
- name: Install dependencies
30+
run: |
31+
pip install -r requirements.txt
32+
33+
- name: Run unit tests
34+
run: |
35+
python -m unittest discover -v tests/unit_tests
36+

0 commit comments

Comments
 (0)