#727 Sender email se večkrat pošlje #126
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: Coverage check | |
on: [pull_request] | |
jobs: | |
lint: | |
name: Code coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
- name: PIP install | |
run: | | |
pip3 install -r requirements.txt | |
pip3 install coverage django_coverage_plugin | |
- name: Python unittest | |
continue-on-error: true | |
run: | | |
coverage run -m manage.py test | |
- name: Generate coverage report | |
continue-on-error: true | |
run: | | |
coverage report -m | |
coverage json | |
- uses: velis74/incremental-coverage-check@main | |
with: | |
py_coverage_json: coverage.json | |
logging_level: INFO | |
base_ref: ${{ github.base_ref }} | |
head_ref: HEAD | |
rep_ref: main | |