Skip to content

Commit

Permalink
Merge pull request #92 from zach401/EHN-Add-Github-Actions
Browse files Browse the repository at this point in the history
Use Github actions for CI testing instead of TravisCI.
  • Loading branch information
zach401 committed Feb 4, 2021
2 parents 716873f + 9e57029 commit 79b5c07
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 11 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python application

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install .[all]
- name: Test with pytest
run: |
pytest
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
],
install_requires=[
"numpy",
"pandas >= 1.1.0",
"pandas >= 1.1.0, < 1.2.0",
"matplotlib",
"requests",
"pytz",
Expand Down

0 comments on commit 79b5c07

Please sign in to comment.