-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (33 loc) · 1.02 KB
/
test.yml
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
45
46
name: Tests
on:
# Make workflow callable.
workflow_call:
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- name: Use Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install project dependencies
run: pip install -r requirements.txt
- name: Install project
run: pip install .
- name: Run isort check
run: isort . --check-only
- name: Run black check
run: black . --check
- name: Run ontotools normalize Turtle files check
run: ontotools dir normalize . --check
# - name: Check for changes in upstream LUTs
# run: python luts.py --path remote_data_dir --validate
# - name: Run tests
# run: python -m pytest --cov=dawe_nrm tests/