mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-13 12:33:25 +02:00
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:
parent
058240841d
commit
069516989d
5 changed files with 8 additions and 5 deletions
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
|
|
@ -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
5
.gitignore
vendored
|
|
@ -21,4 +21,7 @@ dist/
|
|||
*pb2_grpc.py
|
||||
*.pyi
|
||||
|
||||
libs/
|
||||
libs/
|
||||
|
||||
# Ignore coverage file
|
||||
coverage.xml
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
1
tox.ini
1
tox.ini
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue