Skip to content

Commit

Permalink
Convert defunct Travis CI workflow to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Dec 15, 2023
1 parent 3b75f79 commit f872d09
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 42 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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:
- uses: actions/checkout@v4
- 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
- run: pip install poetry
- run: poetry install --with dev
- run: make tests
- run: make cov
- run: coveralls
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ lint:
f: format lint

tests:
python radon/tests/run.py
coverage run -m pytest -v

cov:
coverage erase && coverage run --branch --include "radon/*" --omit "radon/__init__.py,radon/cli.py,radon/tests/*" radon/tests/run.py
Expand Down
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 0 additions & 14 deletions radon/tests/run.py

This file was deleted.

6 changes: 0 additions & 6 deletions test_requirements.txt

This file was deleted.

0 comments on commit f872d09

Please sign in to comment.