There was an error while loading. Please reload this page.
1 parent de4bf59 commit 19ae27bCopy full SHA for 19ae27b
2 files changed
.github/workflows/test.yml
@@ -0,0 +1,25 @@
1
+name: Test
2
+
3
+on:
4
+ push:
5
+ branches: [ main, master ]
6
+ pull_request:
7
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
@@ -0,0 +1,9 @@
+.PHONY: test build
+build:
+ python3 -m py_compile spqr_monitor.py
+ python3 -m py_compile test_spqr_monitor.py
+ python3 -m py_compile test_integration.py
+test:
+ python3 -m unittest discover -s . -p "test_*.py" -v
0 commit comments