mirror of
https://github.com/wger-project/wger.git
synced 2026-02-17 16:07:53 +01:00
Generate coverage reports for the tests
This commit is contained in:
2
.coveragerc
Normal file
2
.coveragerc
Normal file
@@ -0,0 +1,2 @@
|
||||
[run]
|
||||
omit = *migrations*
|
||||
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@@ -41,16 +41,24 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install wheel
|
||||
pip install wheel coverage
|
||||
pip install -r requirements_prod.txt
|
||||
python setup.py develop
|
||||
|
||||
- name: Test the application (Postgres)
|
||||
run: |
|
||||
wger create-settings --database-type postgresql
|
||||
python3 manage.py test
|
||||
coverage run --source='.' python manage.py test
|
||||
coverage html --directory coverage-postgres
|
||||
|
||||
# - name: Test the application (Sqlite)
|
||||
# run: |
|
||||
# wger create-settings
|
||||
# python3 manage.py test
|
||||
# coverage run --source='.' python manage.py test
|
||||
# coverage html --directory coverage-sqlite
|
||||
|
||||
- name: Save coverage result artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: coverage-results-${{ matrix.python-version }}
|
||||
path: coverage-postgres/
|
||||
|
||||
Reference in New Issue
Block a user