Skip to content

Commit 19ae27b

Browse files
committed
add ci
1 parent de4bf59 commit 19ae27b

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: '3.10'
20+
21+
- name: Build (check syntax)
22+
run: make build
23+
24+
- name: Run tests
25+
run: make test

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.PHONY: test build
2+
3+
build:
4+
python3 -m py_compile spqr_monitor.py
5+
python3 -m py_compile test_spqr_monitor.py
6+
python3 -m py_compile test_integration.py
7+
8+
test:
9+
python3 -m unittest discover -s . -p "test_*.py" -v

0 commit comments

Comments
 (0)