Skip to content

Commit c07be8e

Browse files
committed
Switch Travis CI to GitHub Actions.
1 parent 44e0d4e commit c07be8e

File tree

2 files changed

+45
-25
lines changed

2 files changed

+45
-25
lines changed

.github/workflows/tests.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
3+
name: Tests
4+
5+
on:
6+
push:
7+
branches-ignore:
8+
- auto-backport-of-pr-[0-9]+
9+
- v[0-9]+.[0-9]+.[0-9x]+-doc
10+
pull_request:
11+
12+
jobs:
13+
test:
14+
name: "Python ${{ matrix.python-version }} ${{ matrix.name-suffix }}"
15+
runs-on: ubuntu-18.04
16+
17+
strategy:
18+
matrix:
19+
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9"]
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Set up Python ${{ matrix.python-version }}
27+
uses: actions/setup-python@v2
28+
with:
29+
python-version: ${{ matrix.python-version }}
30+
31+
- name: Install Python dependencies
32+
run: |
33+
python -m pip install --upgrade pip setuptools wheel
34+
python -m pip install --upgrade pytest pytest-cov pytest-xdist
35+
36+
- name: Install cycler
37+
run: |
38+
python -m pip install --no-deps .
39+
40+
- name: Run pytest
41+
run: |
42+
pytest -raR -n auto --cov --cov-report=
43+
44+
- name: Upload code coverage
45+
uses: codecov/codecov-action@v1

.travis.yml

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

0 commit comments

Comments
 (0)