Skip to content

Commit

Permalink
[ci] Minor updates for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Jul 31, 2024
1 parent c86133b commit 15366d4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 21 deletions.
8 changes: 3 additions & 5 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
[run]
source = openwisp_utils
parallel = true
concurrency = multiprocessing
omit =
/*/test*
/tests
/*/__init__.py
/setup.py
/*/migrations/*
source = openwisp_utils
parallel = true
concurrency = multiprocessing
27 changes: 11 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
- dev

jobs:

build:
name: Python==${{ matrix.python-version }} | ${{ matrix.django-version }}
runs-on: ubuntu-24.04
Expand Down Expand Up @@ -54,30 +53,26 @@ jobs:
- name: Tests
if: ${{ !cancelled() && steps.deps.conclusion == 'success' }}
run: |
coverage run -p --source=openwisp_utils runtests.py --parallel
coverage run runtests.py --parallel
coverage combine
coverage xml
env:
SELENIUM_HEADLESS: 1

- name: Upload Coverage
if: ${{ success() }}
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: |
python-${{ matrix.python-version }}-${{ matrix.django-version }}
COVERALLS_PARALLEL: true
uses: coverallsapp/github-action@v2
with:
parallel: true
format: cobertura
flag-name: python-${{ matrix.env.env }}
github-token: ${{ secrets.GITHUB_TOKEN }}

coveralls:
name: Finish Coveralls
needs: build
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finished
run: |
pip3 install --upgrade coveralls
coveralls --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true

0 comments on commit 15366d4

Please sign in to comment.