-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (46 loc) · 1.2 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
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: [3.9, 3.10, 3.11]
include:
- python-version: 3.9
pandas: 1.5.3
- python-version: 3.10
pandas: 1.5.3
- python-version: 3.11
pandas: 2.2.0
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 }}-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 ipywidgets
pip install -e .[test]
- name: Lint with flake8
run: |
flake8
- name: Run the tests
run: |
pytest