Skip to content

Commit

Permalink
Replace outdated CI configurations with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Nov 21, 2023
1 parent e5a264b commit c8df3d4
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 69 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI
concurrency:
group: check-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- master
tags:
- v*
pull_request:
branches:
- master
jobs:
test:
runs-on: '${{ matrix.os }}'
strategy:
matrix:
os:
- ubuntu-latest
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: '${{ matrix.python-version }}'
cache: pip
- run: pip install coveralls tox-gh
- run: make install
- run: make check
- run: coveralls
continue-on-error: true
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: "3.x"
cache: pip
- run: make install # TODO: this should only install lint dependencies
- run: make lint
48 changes: 0 additions & 48 deletions .gitlab-ci.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

9 changes: 8 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,11 @@ setenv =
commands =
coverage run --source=pygal {envbindir}/py.test {posargs:pygal/test} --junitxml=junit-{envname}.xml
coverage xml -o coverage-{envname}.xml
flake8 pygal

[gh]
python =
3.12 = py312
3.11 = py311, type
3.10 = py310
3.9 = py39
3.8 = py38

0 comments on commit c8df3d4

Please sign in to comment.