Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coveralls: Pass $GITHUB_TOKEN to get coveralls.io working again #557

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 21 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ on:
branches:
- master
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pip install --user ruff
- run: ruff --output-format=github
test:
runs-on: '${{ matrix.os }}'
strategy:
Expand All @@ -32,15 +38,21 @@ jobs:
cache: pip
- run: pip install coveralls tox tox-gh
- run: tox
- run: coveralls
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}
COVERALLS_PARALLEL: true
run: coveralls
continue-on-error: true
lint:
coveralls:
name: Indicate completion to coveralls.io
needs: test
runs-on: ubuntu-latest
container: python:3-slim
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
cache: pip
- run: make install # TODO: this should only install lint dependencies
- run: make lint
- name: Finished
run: |
pip3 install --upgrade coveralls
coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ envlist = py38,py39,py310,py311,py312,pypy

[testenv]
deps =
pytest
cairosvg
coverage
lxml
pyquery
cairosvg
pytest

setenv =
COVERAGE_FILE=.cov-{envname}
commands =
coverage run --source=pygal {envbindir}/py.test {posargs:pygal/test} --junitxml=junit-{envname}.xml
coverage run {envbindir}/pytest --junitxml=junit-{envname}.xml
coverage xml -o coverage-{envname}.xml

[gh]
Expand Down