Skip to content

Commit

Permalink
Adjust coverage settings
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Jan 24, 2024
1 parent bbb1268 commit 681b683
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,24 +77,27 @@ jobs:
run: |
psql -c "CREATE DATABASE testdb ENCODING 'UTF8' TEMPLATE template0;" -U postgres -h localhost
- name: Run tests with optional dependencies
if: endsWith(matrix.pyenv, '-raw') != true
run: make tests

- name: Run tests with minimal dependencies
if: endsWith(matrix.pyenv, '-raw') == true
run: make tests-raw

- name: Run tests with optional dependencies
if: endsWith(matrix.pyenv, '-raw') != true
env:
COVERAGE_DEBUG: config,trace,pathmap
run: make tests

- name: Coveralls for ${{ matrix.pyenv }}
if: endsWith(matrix.pyenv, '-raw') != true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.pyenv }}
COVERALLS_PARALLEL: true
run: |
.venv/bin/python -m pip install coveralls
.venv/bin/coveralls --service=github
pip install coveralls
coveralls --service=github
coveralls:
finish:
name: Coveralls Finished
needs: unit-test
runs-on: ubuntu-latest
Expand All @@ -104,7 +107,7 @@ jobs:
python-version: "3.x"
- name: Install coveralls
run: pip install coveralls
- name: Finished
- name: Coveralls Finished
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls --service=github --finish
Expand Down
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,11 @@ migrate: install $(SERVER_CONFIG)

test: tests
tests-once: tests
tests: install-postgres install-monitoring install-memcached version-file tests-raw
tests: install-postgres install-monitoring install-memcached version-file install-dev
$(VENV)/bin/py.test --cov-config setup.cfg --cov-report term-missing --cov-fail-under 100 --cov kinto

tests-raw: install-dev
$(VENV)/bin/py.test --cov-report term-missing --cov-fail-under 100 --cov kinto
tests-raw: version-file install-dev
$(VENV)/bin/py.test

lint: install-dev
$(VENV)/bin/ruff check kinto tests docs/conf.py
Expand Down

0 comments on commit 681b683

Please sign in to comment.