add coverage

This commit is contained in:
shahules786 2022-10-06 11:40:28 +05:30
parent 9b3359d3ec
commit eb7d09f375
1 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1.1.1
env :
env :
ACTIONS_ALLOW_UNSECURE_COMMANDS : true
with:
python-version: ${{ matrix.python-version }}
@ -38,12 +38,12 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install black flake8 pytest
pip install black flake8 pytest-cov
- name: Run black
run:
black --check .
- name: Run flake8
run: flake8
- name: Test with pytest
run:
pytest tests
run:
pytest tests --cov=enhancer/