Skip to content

Commit

Permalink
ci: migrate to GitHub Actions (#387)
Browse files Browse the repository at this point in the history
* Add CI workflow using GitHub Actions

* Replace CI badges

- Travis CI badge with GitHub Actions CI badge
- coveralls badge with codecov badge

* Remove Travis CI settings

* Restrict permissions on CI workflow for security

* Pass `TERM` environment variable on running tests in CI
  • Loading branch information
rhysd authored Oct 24, 2022
1 parent 79aa5cf commit e120918
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 82 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on: [push, pull_request]

env:
PYTEST_ADDOPTS: "--cov-report=xml --color=yes"
TOX_TESTENV_PASSENV: 'TERM'

permissions:
contents: read

jobs:
test:
strategy:
matrix:
python: ['3.10', '3.9', '3.8']
include:
- python: '3.10'
toxenv: py310-cov
- python: '3.9'
toxenv: py39-cov
- python: '3.8'
toxenv: py38-cov
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '${{ matrix.python }}'
- run: pip install tox
- run: tox
env:
TOXENV: '${{ matrix.toxenv }}'
TERM: xterm
- uses: codecov/codecov-action@v3
with:
files: coverage.xml
78 changes: 0 additions & 78 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,10 @@ Acknowledgement
:target: https://pypi.python.org/pypi/vim-vint/
.. |Supported Python implementations| image:: https://img.shields.io/pypi/implementation/vim-vint.svg
:target: https://pypi.python.org/pypi/vim-vint/
.. |Build Status| image:: https://travis-ci.org/Vimjas/vint.svg?branch=master
:target: https://travis-ci.org/Vimjas/vint
.. |Coverage Status| image:: https://img.shields.io/coveralls/Kuniwak/vint.svg
:target: https://coveralls.io/r/Kuniwak/vint
.. |Build Status| image:: https://github.com/Vimjas/vint/actions/workflows/ci.yml/badge.svg
:target: https://github.com/Vimjas/vint/actions/workflows/ci.yml
.. |Coverage Status| image:: https://codecov.io/gh/Vimjas/vint/branch/master/graph/badge.svg
:target: https://app.codecov.io/gh/Vimjas/vint
.. |Code Health| image:: https://landscape.io/github/Kuniwak/vint/master/landscape.png
:target: https://landscape.io/github/Kuniwak/vint/master
.. |Dependency Status| image:: https://gemnasium.com/Kuniwak/vint.svg
Expand Down

0 comments on commit e120918

Please sign in to comment.