Update moto import and decorators #587
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.9 | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install . | |
pip install .[test] | |
- name: run pytest | |
run: | | |
coverage erase | |
pytest --cov=kg_obo --cov-report xml:coverage.xml | |
coverage combine --append || true | |
coverage report | |
coverage xml | |
- name: run mypy | |
run: mypy --strict-optional kg_obo run.py | |
- name: SonarCloud Scan | |
uses: sonarsource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.KGCOVID19_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |