Simplify test run in github action (#1921)

* Simplify test run in github action

* Change git to https for pre-commit config
This commit is contained in:
Jonathan Zernik 2021-12-29 19:18:13 -08:00 committed by GitHub
parent 058240841d
commit 069516989d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 5 deletions

View file

@ -36,11 +36,9 @@ jobs:
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
pip install tox
- name: Run tests and collect coverage
run: |
make gen-protos
coverage run -m pytest tests
make test
coverage xml
-
name: Coverage

5
.gitignore vendored
View file

@ -21,4 +21,7 @@ dist/
*pb2_grpc.py
*.pyi
libs/
libs/
# Ignore coverage file
coverage.xml

View file

@ -29,7 +29,7 @@ repos:
hooks:
- id: mypy
additional_dependencies: [tokenize-rt==3.2.0]
- repo: git@github.com:humitos/mirrors-autoflake.git
- repo: https://github.com/humitos/mirrors-autoflake
rev: v1.1
hooks:
- id: autoflake

View file

@ -4,3 +4,4 @@ mock==4.0.3
pre-commit==2.15.0
pytest==6.2.5
requirements-tools==1.2.4
tox==3.24.5

View file

@ -12,6 +12,7 @@ commands =
coverage run -m pytest -s {posargs:tests}
coverage report --show-missing
coverage html
coverage xml
pre-commit install -f --install-hooks
pre-commit run --all-files
# check-requirements