Skip to content

Commit

Permalink
Merge pull request quantopian#363 from quantopian/gh-actions
Browse files Browse the repository at this point in the history
BLD: Github Actions
  • Loading branch information
gerrymanoim authored Mar 10, 2020
2 parents ced180e + 9d8adaa commit 3e88615
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 54 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
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
scipy: 0.17.1
statsmodels: 0.6.1
- python-version: 3.5
pandas: 0.18.1
numpy: 1.11.3
scipy: 0.17.1
statsmodels: 0.6.1
- python-version: 3.7
pandas: 1.0.1
numpy: 1.18.1
scipy: 1.4.1
statsmodels: 0.11.1
- python-version: 3.8
pandas: 1.0.1
numpy: 1.18.1
scipy: 1.4.1
statsmodels: 0.11.1

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
env:
PYTHONWARNINGS: ignore:DEPRECATION::pip._internal.cli.base_command
run: |
python -m pip install --upgrade pip
pip install numpy==${{ matrix.numpy }}
pip install pandas==${{ matrix.pandas }} scipy==${{ matrix.scipy }} statsmodels==${{ matrix.statsmodels}}
pip install -e .[test]
- name: Lint with flake8
run: |
flake8
- name: Test with nose
run: |
MATPLOTLIBRC=alphalens/tests/matplotlibrc nosetests alphalens/tests
53 changes: 0 additions & 53 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion alphalens/tears.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.


import matplotlib.gridspec as gridspec
import matplotlib.pyplot as plt
import pandas as pd
Expand Down
7 changes: 7 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,10 @@ versionfile_source=alphalens/_version.py
versionfile_build=alphalens/_version.py
tag_prefix= v
parentdir_prefix= alphalens-

[flake8]
exclude =
.git,
__pycache__,
docs,
versioneer.py
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"nose>=1.3.7",
"parameterized>=0.5.0",
"tox>=2.3.1",
"flake8>=3.7.9",
],
}

Expand Down

0 comments on commit 3e88615

Please sign in to comment.