-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1002 Bytes
/
main.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
name: run tests
on: [push]
jobs:
run-make:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-python@v2
name: setup python
with:
python-version: 3.7
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install .[test]
- name: run pytest
run: |
coverage erase
pytest --cov=kg_registry --cov-report xml:coverage.xml
coverage combine --append || true
coverage report
coverage xml
- name: run mypy
run: mypy --strict-optional kg_registry
- name: run yamllint
run: yamllint -d relaxed registry.yaml
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.KGCOVID19_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}