aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kemmer <tkemmer@computer.org>2021-08-09 21:57:40 +0200
committerThomas Kemmer <tkemmer@computer.org>2021-08-09 21:57:40 +0200
commitfc477611191dcd85a277244cef7c17f909d3dd15 (patch)
tree9ca2066f52086ca6b63b9eb5fe582bae962f1b2d
parente919f2fbfca1c404a9d9e313ddc0a1f4fe119f76 (diff)
downloadcachetools-fc477611191dcd85a277244cef7c17f909d3dd15.tar.gz
Move CI to GitHub Actions, coverage to Codecov.
-rw-r--r--.github/workflows/ci.yml22
-rw-r--r--.travis.yml19
-rw-r--r--README.rst10
-rw-r--r--tox.ini3
4 files changed, 28 insertions, 26 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..b0a9160
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,22 @@
+name: CI
+
+on: [push, pull_request, workflow_dispatch]
+
+jobs:
+ main:
+ name: Python ${{ matrix.python }}
+ runs-on: ubuntu-20.04
+ strategy:
+ fail-fast: false
+ matrix:
+ python: ["3.6", "3.7", "3.8", "3.9", "pypy-3.6", "pypy-3.7"]
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python }}
+ - run: python -m pip install coverage tox
+ - run: python -m tox
+ - uses: codecov/codecov-action@v1
+ with:
+ name: ${{ matrix.python }}
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 901e9f0..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-language: python
-
-python:
-- 3.5
-- 3.6
-- 3.7
-- 3.8
-- 3.9
-- 3.10-dev
-- pypy3
-
-install:
-- pip install coveralls tox
-
-script:
-- tox
-
-after_success:
-- coveralls
diff --git a/README.rst b/README.rst
index 1ddb8a2..106d64a 100644
--- a/README.rst
+++ b/README.rst
@@ -9,12 +9,12 @@ cachetools
:target: https://cachetools.readthedocs.io/
:alt: Documentation build status
-.. image:: https://img.shields.io/travis/tkem/cachetools
- :target: https://travis-ci.org/tkem/cachetools/
- :alt: Travis CI build status
+.. image:: https://img.shields.io/github/workflow/status/tkem/cachetools/CI
+ :target: https://github.com/tkem/cachetools/actions
+ :alt: CI build status
-.. image:: https://img.shields.io/coveralls/tkem/cachetools
- :target: https://coveralls.io/r/tkem/cachetools
+.. image:: https://img.shields.io/codecov/c/github/tkem/cachetools/master.svg
+ :target: https://codecov.io/gh/tkem/cachetools
:alt: Test coverage
.. image:: https://img.shields.io/github/license/tkem/cachetools
diff --git a/tox.ini b/tox.ini
index f2b8671..b36d00c 100644
--- a/tox.ini
+++ b/tox.ini
@@ -3,7 +3,6 @@ envlist = check-manifest,docs,doctest,flake8,py
[testenv]
deps =
- coverage
pytest
pytest-cov
commands =
@@ -32,7 +31,7 @@ commands =
[testenv:flake8]
deps =
flake8
- flake8-black; python_version >= "3.6" and implementation_name == "cpython"
+ flake8-black; implementation_name == "cpython"
flake8-bugbear
flake8-import-order
commands =