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 e69e854
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 46 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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 config virtualenvs.create false
- 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.

6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ lint:

f: format lint

tests:
python radon/tests/run.py
tests: cov

cov:
coverage erase && coverage run --branch --include "radon/*" --omit "radon/__init__.py,radon/cli.py,radon/tests/*" radon/tests/run.py
coverage report -m
py.test --cov radon --cov-report term-missing --cov-report xml .

htmlcov: cov
coverage html
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
19 changes: 18 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pytest-mock = "*"
argparse = "*"
nbformat = "*"
tox = "^4.4.7"
pytest-cov = "^4.1.0"

[tool.poetry.scripts]
radon = "radon:main"
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 e69e854

Please sign in to comment.