-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (44 loc) · 1.37 KB
/
qc.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
47
48
49
50
51
52
53
54
name: ontobot-change-agent qc
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.9"]
os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install tox
- name: Check code quality with flake8
run: tox -e flake8
- name: Run mypy check.
run: tox -e mypy
- name: Run docstring coverage
run: tox -e docstr-coverage
#----------------------------------------------
# install & configure poetry
#----------------------------------------------
- name: Install Poetry
run: pip install poetry
#----------------------------------------------
# install dependencies if cache does not exist
#----------------------------------------------
- name: Install dependencies
run: |
poetry install --no-interaction
- name: Run tests
run: |
echo ${{ secrets.GH_TOKEN }} >> ${GITHUB_WORKSPACE}/src/ontobot_change_agent/token.txt
poetry run pytest