Added tests CI workflow
Browse files- .github/workflows/tests.yml +27 -0
.github/workflows/tests.yml
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Tests
|
2 |
+
|
3 |
+
on:
|
4 |
+
push:
|
5 |
+
branches:
|
6 |
+
- '**'
|
7 |
+
|
8 |
+
jobs:
|
9 |
+
tests:
|
10 |
+
runs-on: ubuntu-20.04
|
11 |
+
steps:
|
12 |
+
- name: Checkout code
|
13 |
+
uses: actions/checkout@v2
|
14 |
+
|
15 |
+
- name: Set up Python 3.6
|
16 |
+
uses: actions/setup-python@v4
|
17 |
+
with:
|
18 |
+
python-version: "3.6"
|
19 |
+
|
20 |
+
- name: Install dependencies
|
21 |
+
run: pip install -r requirements.txt
|
22 |
+
|
23 |
+
- name: Check formatting
|
24 |
+
run: sh shell/lint.sh
|
25 |
+
|
26 |
+
- name: Run tests
|
27 |
+
run: pytest -v tests/
|