Skip to content

Commit

Permalink
Add Github workflow for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzosaino committed Mar 14, 2020
1 parent ebd0210 commit 4cf4067
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

name: Test
on:
push:
pull_request:
schedule:
- cron: 0 3 * * 6 # Every Saturday at 3:00 AM
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install native dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends \
libatlas-base-dev \
liblapack-dev \
gfortran \
libsuitesparse-dev \
libgdal-dev \
graphviz \
mono-devel
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install package and dependencies
run: make install
- name: Run tests
run: make test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ __pycache__
# Ignore all files starting with . (e.g., .*project) but not .gitignore and .travis.yml
.*
!.gitignore
!.github
!.travis.yml

# Ignore build files
Expand Down

0 comments on commit 4cf4067

Please sign in to comment.