mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-02-01 04:42:21 +00:00
Belt and braces approach to coverage
This commit is contained in:
8
.github/workflows/django.yml
vendored
8
.github/workflows/django.yml
vendored
@@ -36,7 +36,7 @@ jobs:
|
|||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install pycodestyle coverage coveralls django_coverage_plugin
|
pip install pycodestyle coverage coveralls django_coverage_plugin pytest-cov
|
||||||
pip install --upgrade --upgrade-strategy eager -r requirements.txt
|
pip install --upgrade --upgrade-strategy eager -r requirements.txt
|
||||||
python manage.py collectstatic --noinput
|
python manage.py collectstatic --noinput
|
||||||
- name: Cache gulp output
|
- name: Cache gulp output
|
||||||
@@ -50,7 +50,11 @@ jobs:
|
|||||||
python manage.py check
|
python manage.py check
|
||||||
python manage.py makemigrations --check --dry-run
|
python manage.py makemigrations --check --dry-run
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: coverage run -p -m pytest -n 8
|
- uses: paambaati/codeclimate-action@v2.2.4
|
||||||
|
env:
|
||||||
|
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
||||||
|
with:
|
||||||
|
coverageCommand: coverage run -m pytest --cov=PyRIGS -n 8
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user