Skip to content

Commit 675f161

Browse files
committed
Migrate CI from Travis to Github actions
Also, update list of supported Python versions.
1 parent ad3d230 commit 675f161

File tree

6 files changed

+33
-24
lines changed

6 files changed

+33
-24
lines changed

.github/workflows/crossplane-ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Crossplane CI
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths-ignore:
7+
- '**.md'
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
python-version: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", pypy-3.6, pypy-3.7, pypy-3.8, pypy-3.9]
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Run tox under Python ${{ matrix.python-version }}
24+
run: |
25+
pip install tox
26+
tox -e py

.travis.yml

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

CONTRIBUTING.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,8 @@ development.
9090
Before you submit a pull request, check that it meets these guidelines:
9191

9292
1. The pull request should include tests.
93-
2. The pull request should work for CPython 2.6, 2.7, 3.3, 3.4, 3.5,
94-
3.6, and 3.7 and for PyPy. Check
95-
<https://travis-ci.org/nginxinc/crossplane> under pull requests for
93+
2. The pull request should work for CPython 2.7, 3.6, 3.7, 3.8, 3.9, 3.10, and PyPy. Check
94+
<https://github.com/nginxinc/crossplane/actions/workflows/crossplane-ci.yml> under pull requests for
9695
active pull requests or run the `tox` command and make sure that the
9796
tests pass for all supported Python versions.
9897
3. Make sure to add yourself to the Contributors list in AUTHORS.rst :)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<h3 align="center">Reliable and fast NGINX configuration file parser and builder</h3>
44

55
<p align="center">
6-
<a href="https://travis-ci.org/nginxinc/crossplane"><img src="https://img.shields.io/travis/nginxinc/crossplane/master.svg"></a>
6+
<a href="https://github.com/nginxinc/crossplane/actions/workflows/crossplane-ci.yml"><img src="https://github.com/nginxinc/crossplane/actions/workflows/crossplane-ci.yml/badge.svg"></a>
77
<a href="https://github.com/nginxinc/crossplane/releases"><img src="https://img.shields.io/github/release/nginxinc/crossplane.svg"></a>
88
<a href="https://pypi.python.org/pypi/crossplane"><img src="https://img.shields.io/pypi/l/crossplane.svg"></a>
99
<a href="https://pypi.python.org/pypi/crossplane"><img src="https://img.shields.io/pypi/pyversions/crossplane.svg"></a>

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ def run(self):
7474
'License :: OSI Approved :: Apache Software License',
7575
'Programming Language :: Python',
7676
'Programming Language :: Python :: 2',
77-
'Programming Language :: Python :: 2.6',
7877
'Programming Language :: Python :: 2.7',
7978
'Programming Language :: Python :: 3',
80-
'Programming Language :: Python :: 3.4',
81-
'Programming Language :: Python :: 3.5',
8279
'Programming Language :: Python :: 3.6',
8380
'Programming Language :: Python :: 3.7',
81+
'Programming Language :: Python :: 3.8',
82+
'Programming Language :: Python :: 3.9',
83+
'Programming Language :: Python :: 3.10',
8484
'Programming Language :: Python :: Implementation :: CPython',
8585
'Programming Language :: Python :: Implementation :: PyPy'
8686
],

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ addopts = -vv --showlocals --disable-warnings -rf -p no:warnings
1111
testpaths = tests/
1212

1313
[tox]
14-
envlist = py26, py27, py34, py35, py36, py37, pypy, py38
14+
envlist = py27, py36, py37, py38, py39, py310, pypy
1515
skipsdist = true
1616

1717
[testenv]

0 commit comments

Comments
 (0)