-
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1016 Bytes
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Test
on:
workflow_dispatch: {}
push: {}
jobs:
test:
name: Test
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
python: ["3.8", "3.9", "3.10"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Templatize
# Templatize the repo before attempting to run tests. (Tests will fail
# otherwise, due to syntax errors.)
# NOTE: Check if the 'templatize' script exists, so that this doesn't
# immediately fail for repos that have already run the script.
run: |
if test -f "templatize"; then
./templatize
fi
- name: Install Package
run: |
pip install -e .[test]
- name: Test
run: |
ruff .
pytest --cov --cov-report term-missing --cov-fail-under 80 tests/
mypy