Skip to content

Commit c6699f6

Browse files
committed
Replace Travis CI with GitHub Actions
1 parent 4992796 commit c6699f6

File tree

2 files changed

+93
-89
lines changed

2 files changed

+93
-89
lines changed

.github/workflows/test.yml

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
name: Test
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
FORCE_COLOR: 1
7+
8+
jobs:
9+
test:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: [ ubuntu-latest ]
15+
python-version: [ "2.7", "3.5", "3.6", "3.7", "3.8" ]
16+
numpy-version: [
17+
"1.8.2",
18+
"1.9.3",
19+
"1.10.4",
20+
"1.11.3",
21+
"1.12.1",
22+
"1.13.3",
23+
"1.14.5",
24+
"1.15.1",
25+
"1.15.4",
26+
"1.16.1",
27+
"1.17.2",
28+
]
29+
exclude:
30+
- { python-version: "2.7", numpy-version: "1.16.1" }
31+
- { python-version: "2.7", numpy-version: "1.17.2" }
32+
33+
- { python-version: "3.5", numpy-version: "1.15.1" }
34+
- { python-version: "3.5", numpy-version: "1.15.4" }
35+
- { python-version: "3.5", numpy-version: "1.16.1" }
36+
- { python-version: "3.5", numpy-version: "1.17.2" }
37+
38+
- { python-version: "3.6", numpy-version: "1.17.2" }
39+
40+
- { python-version: "3.7", numpy-version: "1.8.2" }
41+
- { python-version: "3.7", numpy-version: "1.9.3" }
42+
- { python-version: "3.7", numpy-version: "1.10.4" }
43+
- { python-version: "3.7", numpy-version: "1.11.3" }
44+
- { python-version: "3.7", numpy-version: "1.12.1" }
45+
- { python-version: "3.7", numpy-version: "1.13.3" }
46+
47+
- { python-version: "3.8", numpy-version: "1.8.2" }
48+
- { python-version: "3.8", numpy-version: "1.9.3" }
49+
- { python-version: "3.8", numpy-version: "1.10.4" }
50+
- { python-version: "3.8", numpy-version: "1.11.3" }
51+
- { python-version: "3.8", numpy-version: "1.12.1" }
52+
- { python-version: "3.8", numpy-version: "1.13.3" }
53+
- { python-version: "3.8", numpy-version: "1.14.5" }
54+
- { python-version: "3.8", numpy-version: "1.15.1" }
55+
- { python-version: "3.8", numpy-version: "1.15.4" }
56+
- { python-version: "3.8", numpy-version: "1.16.1" }
57+
58+
steps:
59+
- uses: actions/checkout@v2
60+
61+
- name: Set up Python ${{ matrix.python-version }}
62+
uses: actions/setup-python@v2
63+
with:
64+
python-version: ${{ matrix.python-version }}
65+
66+
- name: Get pip cache dir
67+
id: pip-cache
68+
run: |
69+
echo "::set-output name=dir::$(pip cache dir)"
70+
71+
- name: Cache
72+
uses: actions/cache@v2
73+
with:
74+
path: ${{ steps.pip-cache.outputs.dir }}
75+
key:
76+
${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.numpy-version }}-v1-${{ hashFiles('**/setup.py') }}
77+
restore-keys: |
78+
${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.numpy-version }}-v1-
79+
80+
- name: Install dependencies
81+
run: |
82+
python -m pip install -U pip
83+
python -m pip install -U wheel
84+
python -m pip install "numpy==${{ matrix.numpy-version }}"
85+
86+
- name: Install
87+
run: |
88+
python setup.py install
89+
90+
- name: Test
91+
run: |
92+
python setup.py test
93+
python -m doctest README.rst

.travis.yml

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

0 commit comments

Comments
 (0)