Skip to content

Commit

Permalink
Merge pull request #23 from click-contrib/github-ci
Browse files Browse the repository at this point in the history
github ci
  • Loading branch information
r-m-n committed Nov 12, 2023
2 parents a8fb2c9 + 971e058 commit 1f980e5
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 28 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- {name: '3.12', python: '3.12', os: ubuntu-latest, tox: py312}
- {name: '3.11', python: '3.11', os: ubuntu-latest, tox: py311}
- {name: '3.10', python: '3.10', os: ubuntu-latest, tox: py310}
- {name: '3.9', python: '3.9', os: ubuntu-latest, tox: py39}
- {name: '3.8', python: '3.8', os: ubuntu-latest, tox: py38}
- {name: '3.7', python: '3.7', os: ubuntu-latest, tox: py37}
- {name: '3.6', python: '3.6', os: ubuntu-20.04, tox: py36}
- {name: Typing, python: '3.11', os: ubuntu-latest, tox: typing}
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1
with:
python-version: ${{ matrix.python }}
- run: pip install tox
- run: tox run -e ${{ matrix.tox }}
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

5 changes: 1 addition & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
click-help-colors
=================

|build| |pypi| |downloads|
|pypi| |downloads|

Colorization of help messages in Click_.

Expand Down Expand Up @@ -159,8 +159,5 @@ From source:
.. |pypi| image:: https://img.shields.io/pypi/v/click-help-colors
:alt: PyPI

.. |build| image:: https://travis-ci.com/click-contrib/click-help-colors.svg?branch=master
:target: https://travis-ci.com/click-contrib/click-help-colors

.. |downloads| image:: https://img.shields.io/pypi/dm/click-help-colors
:alt: PyPI - Downloads
10 changes: 10 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ envlist =
py37-{7,8}
py38-{7,8}
py39-{7,8}
py310-{7,8}
py311-{7,8}
py312-{7,8}

[testenv]
deps =
Expand All @@ -12,3 +15,10 @@ deps =
8: click >= 8.0.0a1, < 9
commands = pytest
skip_missing_interpreters = true

[testenv:typing]
deps =
mypy
7: click >= 7.0, < 8
8: click >= 8.0.0a1, < 9
commands = mypy

0 comments on commit 1f980e5

Please sign in to comment.