Skip to content

Commit

Permalink
run coverage only for one matrix combination
Browse files Browse the repository at this point in the history
  • Loading branch information
lociii committed Feb 20, 2025
1 parent b1572f8 commit 2e93afb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:

env:
GITHUB_WORKFLOW: true
COVERAGE_PYTHON_VERSION: 3.12
COVERAGE_DJANGO_VERSION: 5.1
COVERAGE_DATABASE: postgres

jobs:
linting:
Expand Down Expand Up @@ -129,13 +132,19 @@ jobs:
- name: Install package
run: pip install -e .

- name: Run tests and coverage
run: coverage run --source=django_scrubber manage.py test
- name: Run tests
run: python manage.py test
env:
DATABASE_ENGINE: ${{ matrix.database }}

- name: Publish coverage
- name: Coverage
if: |
matrix.python == env.COVERAGE_PYTHON_VERSION
&&
matrix.django == env.COVERAGE_DJANGO_VERSION
&&
matrix.database == env.COVERAGE_DATABASE
&&
github.repository == 'RegioHelden/django-scrubber'
&&
(
Expand All @@ -147,10 +156,11 @@ jobs:
github.head_ref == 'master'
)
)
run: pip install coverage coveralls && coverage run --source=django_scrubber manage.py test && coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: coveralls
DATABASE_ENGINE: ${{ matrix.database }}

build:
name: Build package
Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
bump-my-version==0.32.1
coverage==7.6.12
coveralls==4.0.1
factory_boy==3.3.3
faker==36.1.1

0 comments on commit 2e93afb

Please sign in to comment.