forked from qzchenwl/qgrid
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (52 loc) · 1.39 KB
/
main.yml
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
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [2.7, 3.5, 3.7, 3.8]
include:
- python-version: 2.7
pandas: 0.18.1
numpy: 1.11.3
- python-version: 3.5
pandas: 0.18.1
numpy: 1.11.3
- python-version: 3.7
pandas: 1.0.1
numpy: 1.18.1
- python-version: 3.8
pandas: 1.0.1
numpy: 1.18.1
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.pandas }}-${{ matrix.numpy }}-pip-${{ hashFiles('**/setup.py') }}
- name: Install dependencies
env:
PYTHONWARNINGS: ignore:DEPRECATION::pip._internal.cli.base_command
run: |
python -m pip install --upgrade pip
pip install pandas==${{ matrix.pandas }} numpy==${{ matrix.numpy }}
pip install -e .[test]
- name: Lint with flake8
run: |
flake8
- name: Run the tests
run: |
pytest