Skip to content

Commit ac121b7

Browse files
authored
Use GitHub Actions as CI, remove Travis CI (#444)
1 parent 3200621 commit ac121b7

File tree

3 files changed

+39
-15
lines changed

3 files changed

+39
-15
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: main
7+
8+
jobs:
9+
test:
10+
name: test w/ Python ${{ matrix.python-version }}
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
python-version: ["3.7"]
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: actions/cache@v1
21+
with:
22+
path: ~/.cache/pip
23+
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
24+
restore-keys: |
25+
${{ runner.os }}-pip-
26+
- uses: actions/setup-python@v2
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
- run: python3 -m pip install -U -r dev-requirements.txt
30+
- run: python3 -m coverage run --branch -m pytest tests/
31+
- uses: codecov/codecov-action@v1
32+
if: always()
33+
with:
34+
token: ${{ secrets.CODECOV_TOKEN }}
35+
file: ./coverage.xml
36+

.travis.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
miss-islington
22
==============
33

4-
.. image:: https://travis-ci.org/python/miss-islington.svg?branch=master
5-
:target: https://travis-ci.org/python/miss-islington
6-
.. image:: https://codecov.io/gh/python/miss-islington/branch/master/graph/badge.svg
4+
.. image:: https://github.com/python/miss-islington/actions/workflows/ci.yml/badge.svg?event=push
5+
:target: https://github.com/python/miss-islington/actions
6+
.. image:: https://codecov.io/gh/python/miss-islington/branch/main/graph/badge.svg
77
:target: https://codecov.io/gh/python/miss-islington
88
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
99
:target: https://github.com/ambv/black

0 commit comments

Comments
 (0)