-
Notifications
You must be signed in to change notification settings - Fork 17
75 lines (66 loc) · 1.59 KB
/
ci.yaml
File metadata and controls
75 lines (66 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: interface-ci
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
pre-commit:
name: pre-commit
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: 3.6
- uses: actions/cache@v1
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- uses: pre-commit/action@v1.0.1
tests:
name: ${{ matrix.name }}
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
name:
- py27
- py35
- py36
- py37
- py38
include:
- name: py27
python-version: 2.7
- name: py35
python-version: 3.5
- name: py36
python-version: 3.6
- name: py37
python-version: 3.7
- name: py38
python-version: 3.8
steps:
- name: Dump Matrix Config
env:
MATRIX: ${{ toJson(matrix) }}
run: echo "$MATRIX"
- name: Checkout Repository
uses: actions/checkout@v1
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ matrix.name }}
- name: Install Tox
run: |
python -m pip install -U pip setuptools
python -m pip install tox
- name: Run Tox
run: tox -e ${{ matrix.name }}