Skip to content

Commit 06b38b5

Browse files
author
Scott Sanderson
committed
BLD: Switch to GH actions, and drop 3.4 support.
1 parent 452a32b commit 06b38b5

File tree

3 files changed

+74
-4
lines changed

3 files changed

+74
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: PGContents CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
10+
jobs:
11+
12+
pre-commit:
13+
name: pre-commit
14+
runs-on: ubuntu-18.04
15+
steps:
16+
- uses: actions/checkout@v1
17+
- uses: actions/setup-python@v1
18+
with:
19+
python-version: 3.6
20+
- uses: actions/cache@v1
21+
with:
22+
path: ~/.cache/pre-commit
23+
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
24+
- uses: pre-commit/[email protected]
25+
26+
tests:
27+
names: ${{ matrix.name }}
28+
runs-on: ubuntu-18.04
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
name:
33+
- py27
34+
- py35
35+
- py36
36+
- py37
37+
include:
38+
- name: py27
39+
python-version: 2.7
40+
- name: py35
41+
python-version: 3.5
42+
- name: py36
43+
python-version: 3.6
44+
- name: py37
45+
python-version: 3.7
46+
47+
steps:
48+
- name: Dump Matrix Config
49+
env:
50+
MATRIX: ${{ toJson(matrix) }}
51+
run: echo "$MATRIX"
52+
53+
- name: Checkout Repository
54+
uses: actions/checkout@v1
55+
56+
- name: Setup Python
57+
uses: actions/setup-python@v1
58+
with:
59+
python-version: ${{ matrix.python-version }}
60+
61+
- uses: actions/cache@v1
62+
with:
63+
path: ~/.cache/pip
64+
key: ${{ matrix.name }}
65+
66+
- name: Install Tox
67+
run: |
68+
python -m pip install -U pip setuptools
69+
python -m pip install tox
70+
71+
- name: Run Tox
72+
run: tox -e ${{ matrix.name }}

py34-coverage.ini

Lines changed: 0 additions & 1 deletion
This file was deleted.

tox.ini

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist=py{27,34,35,36,37}
2+
envlist=py{27,35,36,37}
33
skip_missing_interpreters=true
44

55
[pep8]
@@ -15,6 +15,5 @@ commands=
1515
py.test --cov-fail-under 100 --cov-config {envname}-coverage.ini
1616

1717
[pytest]
18-
pep8maxlinelength = 90
19-
addopts = --pep8 --cov interface --cov-report term-missing --cov-report html
18+
addopts = --cov interface --cov-report term-missing --cov-report html
2019
testpaths = interface

0 commit comments

Comments
 (0)