Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert defunct Travis CI workflow to GitHub Actions #258

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
# TODO: re-enabling `coveralls` requires a token in the repo secrets
# - 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.