From f7c4491860a726843e8f9c2a5f98dc6f825c248b Mon Sep 17 00:00:00 2001 From: Aarni Koskela <akx@iki.fi> Date: Fri, 15 Dec 2023 15:18:44 +0200 Subject: [PATCH] Convert defunct Travis CI workflow to GitHub Actions --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ .travis.yml | 18 ------------------ README.rst | 6 +++--- test_requirements.txt | 6 ------ 4 files changed, 35 insertions(+), 27 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml delete mode 100644 test_requirements.txt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8c4ce6a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + build: + runs-on: '${{ matrix.os }}' + strategy: + matrix: + os: + - ubuntu-latest + python-version: + - '3.12' + steps: + - name: 'Set up Python ${{ matrix.python-version }}' + uses: actions/setup-python@v5 + with: + python-version: '${{ matrix.python-version }}' + cache: pip + cache-dependency-path: | + poetry.lock + pyproject.toml + - uses: actions/checkout@v4 + - run: pip install poetry + - run: poetry install --with dev + - run: make tests + - run: make cov + - run: coveralls diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a55d193..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: python -os: linux -dist: xenial -python: - - "2.7" - - "3.6" - - "3.7" - - "3.8" - - "3.9" - - "pypy3.5" -install: - - pip install . - - pip install -r test_requirements.txt -script: - - make tests - - make cov -after_success: - - coveralls diff --git a/README.rst b/README.rst index 9b408b9..59212ad 100644 --- a/README.rst +++ b/README.rst @@ -5,9 +5,9 @@ Radon :alt: Codacy badge :target: https://www.codacy.com/app/rubik/radon/dashboard -.. image:: https://img.shields.io/travis/rubik/radon/master.svg?style=for-the-badge - :alt: Travis-CI badge - :target: https://travis-ci.org/rubik/radon +.. image:: https://img.shields.io/github/actions/workflow/status/rubik/radon/ci.yml + :alt: GitHub Actions badge + :target: https://github.com/rubik/radon/actions .. image:: https://img.shields.io/coveralls/rubik/radon/master.svg?style=for-the-badge :alt: Coveralls badge diff --git a/test_requirements.txt b/test_requirements.txt deleted file mode 100644 index 1994134..0000000 --- a/test_requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ -coverage -coveralls -pytest>=5.0; python_version >= '3.0' -pytest>=2.7; python_version < '3.0' -pytest-mock -nbformat