Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI

on: [push]

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-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: 0.25.3
numpy: 1.17.4
- python-version: 3.8
pandas: 0.25.3
numpy: 1.17.4

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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gerrymanoim Doesn't look like installing dependencies takes that much time in the build but might want to consider adding this step prior https://github.com/actions/cache/blob/master/examples.md#python---pip?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh - thanks! I'll add that.

Sadly the time is completely dominated by tests.

pip install pandas==${{ matrix.pandas }} numpy==${{ matrix.numpy }}
pip install -r etc/requirements.txt
- name: Lint with flake8
run: |
flake8
- name: Test with nose
run: |
nosetests tests
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

83 changes: 0 additions & 83 deletions appveyor.yml

This file was deleted.

97 changes: 0 additions & 97 deletions ci/appveyor/install.ps1

This file was deleted.

95 changes: 0 additions & 95 deletions ci/appveyor/run_with_env.cmd

This file was deleted.

1 change: 0 additions & 1 deletion ci/appveyor/vcvars64.bat

This file was deleted.

10 changes: 3 additions & 7 deletions etc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@
-e .
configparser==3.5.0
enum34==1.1.6
flake8==3.5.0
lru-dict==1.1.6
mccabe==0.6.1
flake8==3.7.9
nose==1.3.7
nose-ignore-docstring==0.2
nose-timer==0.7.2
nose-timer==0.7.5
parameterized==0.6.1
pycodestyle==2.3.1
pyflakes==1.6.0
python-dateutil==2.7.3
pytz==2018.6
pytz==2019.3
six==1.11.0
toolz==0.9.0
6 changes: 6 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@ versionfile_source = trading_calendars/_version.py
versionfile_build = trading_calendars/_version.py
tag_prefix = ""
parentdir_prefix = trading_calendars-

[flake8]
exclude =
.git,
__pycache__,
versioneer.py
Loading