Skip to content

Commit

Permalink
Merge pull request #1046 from afuetterer/coveralls
Browse files Browse the repository at this point in the history
ci: replace custom coveralls job with coverallsapp/github-action
  • Loading branch information
afuetterer authored Jul 11, 2024
2 parents 0ca7a28 + d017f2f commit 5df8d19
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
python-version: "3.12"
cache: pip
- name: Run linters via pre-commit (ruff, eslint)
uses: pre-commit/[email protected]
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
with:
extra_args: --all-files --color=always

Expand Down Expand Up @@ -80,12 +80,13 @@ jobs:
- name: Run Tests
run: |
pytest -p randomly -p no:cacheprovider --cov --reuse-db --numprocesses=auto --dist=loadscope
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_DB_BACKEND: ${{ matrix.db-backend }}
COVERALLS_FLAG_NAME: '${{ matrix.db-backend }}: ${{ matrix.python-version }}'
COVERALLS_PARALLEL: true
- name: Upload coverage data to coveralls.io
uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63 # v2.3.0
with:
flag-name: '${{ matrix.db-backend }}: ${{ matrix.python-version }}'
parallel: true
# end-to-end tests
- uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -114,15 +115,13 @@ jobs:
coveralls:
name: Indicate completion to coveralls
needs: test
runs-on: ubuntu-latest
container: python:3-slim
if: ${{ always() }}
runs-on: ubuntu-24.04
steps:
- name: Run Coveralls finish
run: |
python -m pip install coveralls
coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63 # v2.3.0
with:
parallel-finished: true

build-wheel:
name: Build python wheel
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ allauth = [
"django-allauth~=0.57.0",
]
ci = [
"coveralls~=3.3",
"rdmo[dev]",
]
dev = [
Expand Down

0 comments on commit 5df8d19

Please sign in to comment.