From 971e058bdf8b469b96220442315a9610fa74f6ca Mon Sep 17 00:00:00 2001 From: r-m-n Date: Sun, 12 Nov 2023 19:09:13 +0300 Subject: [PATCH] github ci --- .github/workflows/tests.yml | 31 +++++++++++++++++++++++++++++++ .travis.yml | 24 ------------------------ README.rst | 5 +---- tox.ini | 10 ++++++++++ 4 files changed, 42 insertions(+), 28 deletions(-) create mode 100644 .github/workflows/tests.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..e5a3512 --- /dev/null +++ b/.github/workflows/tests.yml @@ -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 }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 26cd813..0000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -language: python -matrix: - include: - - python: 3.6 - env: TOXENV=py36-7 - - python: 3.6 - env: TOXENV=py36-8 - - python: 3.7 - env: TOXENV=py37-7 - - python: 3.7 - env: TOXENV=py37-8 - - python: 3.8 - env: TOXENV=py38-7 - - python: 3.8 - env: TOXENV=py38-8 - - python: 3.9 - env: TOXENV=py39-7 - - python: 3.9 - env: TOXENV=py39-8 -install: - - pip install tox -script: - - tox -e $TOXENV -sudo: false diff --git a/README.rst b/README.rst index e4f88f2..6a5ad95 100644 --- a/README.rst +++ b/README.rst @@ -2,7 +2,7 @@ click-help-colors ================= -|build| |pypi| |downloads| +|pypi| |downloads| Colorization of help messages in Click_. @@ -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 diff --git a/tox.ini b/tox.ini index aa12fef..650b1c8 100644 --- a/tox.ini +++ b/tox.ini @@ -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 = @@ -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