Skip to content

Commit 61d1377

Browse files
committed
Add CI
1 parent 744d143 commit 61d1377

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Python Unit Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: 3.8
20+
21+
- name: Install dependencies
22+
run: |
23+
python -m venv venv
24+
source venv/bin/activate
25+
pip install -r requirements.txt
26+
27+
- name: Run tests
28+
run: |
29+
source venv/bin/activate
30+
python -m unittest discover -s tests/ -p 'test*.py'

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@
1414
wmi_client_wrapper.egg-info/
1515
dist/
1616
build/
17+
18+
# python virtualenv
19+
venv/

0 commit comments

Comments
 (0)