Skip to content

Commit

Permalink
Drop Travis and AppVeyor. (#116)
Browse files Browse the repository at this point in the history
* Drop Travis and AppVeyor.

* Add a GitHub Action file.

* The pypy3 alias no longer works.

* Run extra configurations in CI.

* Pypy 3.6 didn't work. Try bumping up to 3.7.
  • Loading branch information
mblayman committed Dec 29, 2021
1 parent 63c7d05 commit 329ca90
Show file tree
Hide file tree
Showing 7 changed files with 99 additions and 83 deletions.
8 changes: 8 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[paths]
source =
tap
*/site-packages/tap

[run]
omit =
tap/tests/*
87 changes: 87 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: Python package

on: [push]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install tox and any other packages
run: pip install tox

- name: Check for lint
run: tox -e lint

build:
needs: lint
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: [3.6, 3.7, 3.8, 3.9, '3.10', 'pypy-3.7']
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}

- name: Install tox and any other packages
run: pip install tox

- name: Run tox
# Run tox using the version of Python in `PATH`
run: tox -e py

# Run the extra tox configurations that run integration type tests.
extra:
needs: build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install tox and any other packages
run: pip install tox

- name: Run tox
run: tox -e with_optional,runner,module,integration

coverage:
needs: extra
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install tox and any other packages
run: pip install tox

- name: Collect coverage data
run: tox -e coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true
verbose: true
45 changes: 0 additions & 45 deletions .travis.yml

This file was deleted.

4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ tappy
=====

[![PyPI version][pypishield]](https://pypi.python.org/pypi/tap.py)
[![BSD license][license]](https://raw.githubusercontent.com/python-tap/tappy/master/LICENSE)
[![Linux status][travis]](https://travis-ci.org/python-tap/tappy)
[![OS X status][travisosx]](https://travis-ci.org/python-tap/tappy)
[![Windows status][appveyor]](https://ci.appveyor.com/project/mblayman/tappy)
[![Coverage][coverage]](https://codecov.io/github/python-tap/tappy)

<img align="right" src="https://github.com/python-tap/tappy/blob/master/docs/images/tap.png"
Expand Down
10 changes: 0 additions & 10 deletions appveyor.yml

This file was deleted.

1 change: 1 addition & 0 deletions docs/releases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Version 3.1, To Be Released
---------------------------

* Add support for Python 3.8.
* Drop support for Python 3.5 (it is end-of-life).
* Fix parsing of multi-line strings in YAML blocks (#111)

Version 3.0, Released January 10, 2020
Expand Down
27 changes: 3 additions & 24 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
[tox]
envlist =
py35
py36
py37
py38
pypy3
runner
module
lint
integration
coverage

[testenv]
deps =
pytest
commands = pytest {envsitepackagesdir}/tap

[testenv:windows]
basepython = python3.6
deps =
pytest
commands = pytest
Expand Down Expand Up @@ -55,11 +36,9 @@ setenv =
CI = true
passenv = TRAVIS*
deps =
coverage
codecov
pytest
pytest-cov
pyyaml
more-itertools
commands =
coverage run tap/tests/run.py
coverage report -m --include "*/tap/*" --omit "*/tests/*"
codecov
pytest --cov=tap --cov-report xml --cov-report term

0 comments on commit 329ca90

Please sign in to comment.