Skip to content

Commit 3e88615

Browse files
author
gerrymanoim
authored
Merge pull request quantopian#363 from quantopian/gh-actions
BLD: Github Actions
2 parents ced180e + 9d8adaa commit 3e88615

File tree

5 files changed

+69
-54
lines changed

5 files changed

+69
-54
lines changed

.github/workflows/main.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ubuntu-latest]
19+
python-version: [2.7, 3.5, 3.7, 3.8]
20+
include:
21+
- python-version: 2.7
22+
pandas: 0.18.1
23+
numpy: 1.11.3
24+
scipy: 0.17.1
25+
statsmodels: 0.6.1
26+
- python-version: 3.5
27+
pandas: 0.18.1
28+
numpy: 1.11.3
29+
scipy: 0.17.1
30+
statsmodels: 0.6.1
31+
- python-version: 3.7
32+
pandas: 1.0.1
33+
numpy: 1.18.1
34+
scipy: 1.4.1
35+
statsmodels: 0.11.1
36+
- python-version: 3.8
37+
pandas: 1.0.1
38+
numpy: 1.18.1
39+
scipy: 1.4.1
40+
statsmodels: 0.11.1
41+
42+
steps:
43+
- uses: actions/checkout@v1
44+
- name: Set up Python ${{ matrix.python-version }}
45+
uses: actions/setup-python@v1
46+
with:
47+
python-version: ${{ matrix.python-version }}
48+
- name: Install dependencies
49+
env:
50+
PYTHONWARNINGS: ignore:DEPRECATION::pip._internal.cli.base_command
51+
run: |
52+
python -m pip install --upgrade pip
53+
pip install numpy==${{ matrix.numpy }}
54+
pip install pandas==${{ matrix.pandas }} scipy==${{ matrix.scipy }} statsmodels==${{ matrix.statsmodels}}
55+
pip install -e .[test]
56+
- name: Lint with flake8
57+
run: |
58+
flake8
59+
- name: Test with nose
60+
run: |
61+
MATPLOTLIBRC=alphalens/tests/matplotlibrc nosetests alphalens/tests

.travis.yml

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

alphalens/tears.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
1716
import matplotlib.gridspec as gridspec
1817
import matplotlib.pyplot as plt
1918
import pandas as pd

setup.cfg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,10 @@ versionfile_source=alphalens/_version.py
88
versionfile_build=alphalens/_version.py
99
tag_prefix= v
1010
parentdir_prefix= alphalens-
11+
12+
[flake8]
13+
exclude =
14+
.git,
15+
__pycache__,
16+
docs,
17+
versioneer.py

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"nose>=1.3.7",
2525
"parameterized>=0.5.0",
2626
"tox>=2.3.1",
27+
"flake8>=3.7.9",
2728
],
2829
}
2930

0 commit comments

Comments
 (0)