Skip to content

Commit f63648e

Browse files
authored
Use Github Actions to run the tests and remove Travis (release-depot#78)
1 parent 4ea2071 commit f63648e

File tree

6 files changed

+56
-40
lines changed

6 files changed

+56
-40
lines changed

.github/workflows/test.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Run tests
2+
on:
3+
push:
4+
branches: [ main ]
5+
pull_request:
6+
branches: [ main ]
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python: [2.7, 3.6, 3.7, 3.8, 3.9]
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Setup Python
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: ${{ matrix.python }}
19+
- name: Install Tox and any other packages
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install tox tox-gh-actions
23+
- name: Run Tox
24+
# Run tox using the version of Python in `PATH`
25+
run: tox -epy
26+
flake8:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v2
30+
- name: Setup Python
31+
uses: actions/setup-python@v2
32+
with:
33+
python-version: 3.9
34+
- name: Install Tox and any other packages
35+
run: |
36+
python -m pip install --upgrade pip
37+
pip install tox tox-gh-actions
38+
- name: Lint with flake8
39+
run: tox -eflake8
40+
integration:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v2
44+
- name: Setup Python
45+
uses: actions/setup-python@v2
46+
with:
47+
python-version: 3.9
48+
- name: Install Tox and any other packages
49+
run: |
50+
python -m pip install --upgrade pip
51+
pip install tox tox-gh-actions
52+
- name: Run integration tests
53+
run: tox -eintegration

.mergify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ pull_request_rules:
77
conditions:
88
- label!=no-mergify
99
- '#approved-reviews-by>=1'
10-
- status-success=continuous-integration/travis-ci/pr
10+
- status-success=Run tests
1111
name: default

.travis.yml

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

CONTRIBUTING.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,8 @@ Before you submit a pull request, check that it meets these guidelines:
101101
2. If the pull request adds functionality, the docs should be updated. Put
102102
your new functionality into a function with a docstring, and add the
103103
feature to the list in README.rst.
104-
3. The pull request should work for Python 3.4, 3.5 and 3.6, and for PyPy. Check
105-
https://travis-ci.org/release-depot/git_wrapper/pull_requests
106-
and make sure that the tests pass for all supported Python versions.
104+
3. The pull request should work for Python 2.7 and 3.6+. The tox
105+
environments and Github Actions are set up to check this.
107106

108107
Tips
109108
----

README.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,11 @@ git_wrapper
66
.. image:: https://img.shields.io/pypi/v/git_wrapper.svg
77
:target: https://pypi.python.org/pypi/git_wrapper
88

9-
.. image:: https://img.shields.io/travis/release-depot/git_wrapper.svg
10-
:target: https://travis-ci.org/release-depot/git_wrapper
11-
129
.. image:: https://readthedocs.org/projects/git-wrapper/badge/?version=latest
1310
:target: https://git-wrapper.readthedocs.io/en/latest/?badge=latest
1411
:alt: Documentation Status
1512

1613

17-
18-
1914
Python wrapper around GitPython
2015

2116

tox.ini

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
[tox]
22
envlist = py27, py36, py37, flake8
33

4-
[travis]
5-
python =
6-
3.7: py37
7-
3.6: py36
8-
2.7: py27
9-
104
[testenv]
115
passenv=HOME
126
sitepackages = False

0 commit comments

Comments
 (0)