Skip to content
Merged
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
67 changes: 67 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- python-version: "3.8"
toxenv: py38
os: ubuntu-latest
- python-version: "3.9"
toxenv: py39
os: ubuntu-latest
- python-version: "3.10"
toxenv: py310
os: ubuntu-latest
- python-version: "3.11"
toxenv: py311
os: ubuntu-latest
- python-version: "3.12"
toxenv: py312
os: ubuntu-latest
- python-version: "3.13"
toxenv: py313
os: ubuntu-latest
- python-version: "pypy-3.9"
toxenv: pypy
os: ubuntu-latest
- python-version: "3.13"
toxenv: py3-cover,coverage
os: ubuntu-latest
coverage: true

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox

- name: Run tests with tox
run: tox
env:
TOXENV: ${{ matrix.toxenv }}

- name: Upload coverage to Codecov
if: matrix.coverage
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Alog
====

.. image:: https://travis-ci.com/keitheis/alog.svg?branch=master
:target: https://travis-ci.com/keitheis/alog
.. image:: https://github.com/keitheis/alog/actions/workflows/ci.yml/badge.svg
:target: https://github.com/keitheis/alog/actions/workflows/ci.yml

.. image:: https://codecov.io/gh/keitheis/alog/branch/master/graph/badge.svg
:target: https://codecov.io/gh/keitheis/alog
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ universal=1

[check-manifest]
ignore =
.travis.yml
PKG-INFO
*.egg-info
*.egg-info/*
Expand Down
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@
'Topic :: System :: Logging',
'Topic :: Software Development',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
Expand Down
32 changes: 11 additions & 21 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,50 +1,40 @@
[tox]
envlist =
py27,py36,py37,py38,py39,pypy,
{py2,py3}-cover,coverage
py38,py39,py310,py311,py312,py313,pypy,
py3-cover,coverage

[testenv]
# Most of these are defaults but if you specify any you can't fall back
# to defaults for others.
basepython =
py27: python2.7
py36: python3.6
py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
py313: python3.13
pypy: pypy
py2: python2.7
py3: python3.9
py3: python3.13

passenv = TOXENV CI TRAVIS TRAVIS_*
passenv = TOXENV,CI,GITHUB_*
commands =
pip install alog[testing]
pytest tests --junitxml=pytest-{envname}.xml {posargs:}

[py-cover]
[testenv:py3-cover]
commands =
pip install alog[testing]
pytest tests --cov-report term-missing --cov=alog

[testenv:py2-cover]
commands =
{[py-cover]commands}
setenv =
COVERAGE_FILE=.coverage.py2

[testenv:py3-cover]
commands =
{[py-cover]commands}
setenv =
COVERAGE_FILE=.coverage.py3

[testenv:coverage]
basepython = python3.9
basepython = python3.13
commands =
coverage erase
coverage combine
coverage xml
coverage report --show-missing --fail-under=100
coverage report --show-missing --fail-under=90
codecov -e TOXENV
deps =
coverage
Expand Down