Skip to content

chore(deps-dev): bump types-pyyaml from 6.0.12 to 6.0.12.9 #577

chore(deps-dev): bump types-pyyaml from 6.0.12 to 6.0.12.9

chore(deps-dev): bump types-pyyaml from 6.0.12 to 6.0.12.9 #577

Workflow file for this run

name: CI
on:
push:
pull_request:
types: [opened, reopened]
env:
MODULE_NAME: graphinder
MIN_TEST_COV: 80
jobs:
CI:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.10']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install poetry
- name: Setup poetry
run: |
poetry config virtualenvs.in-project true
poetry install
- name: Run lint
if: always()
run: |
source .venv/bin/activate
isort -m 9 --line-length 160 $MODULE_NAME tests --check-only
pylint --load-plugins pylint_quotes $MODULE_NAME tests
docformatter --wrap-summaries 160 --wrap-descriptions 160 -cr $MODULE_NAME tests
yapf -rd $MODULE_NAME tests
mypy -V
mypy $MODULE_NAME tests
- name: Run tests
run: |
source .venv/bin/activate
pytest --reruns=3 --cov=$MODULE_NAME --cov-report=xml --cov-fail-under=$MIN_TEST_COV tests/unit
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
flags: unittests