Skip to content

Commit

Permalink
Add Github Actions CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dani Sim committed Sep 26, 2019
1 parent 4cb0508 commit 363feb2
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/ci-workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Empyrical CI

on: [push]

jobs:
build-and-test:

runs-on: ubuntu-18.04

strategy:
matrix:
python_venv: ['2.7_v1', '2.7_v2', '2.7_v3', '3.5_v1', '3.5_v2', '3.6']
include:
- python_venv: '2.7_v1'
python: 2.7
pandas: 0.18.1
numpy: 1.11.1
scipy: 0.17.1
libgfortran: 3.0
- python_venv: '2.7_v2'
python: 2.7
pandas: 0.19.2
numpy: 1.12.1
scipy: 0.19.0
libgfortran: 3.0
- python_venv: '2.7_v3'
python: 2.7
pandas: 0.20.1
numpy: 1.12.1
scipy: 0.19.0
libgfortran: 3.0
- python_venv: '3.5_v1'
python: 3.5
pandas: 0.18.1
numpy: 1.11.1
scipy: 0.17.1
libgfortran: 3.0
- python_venv: '3.5_v2'
python: 3.5
pandas: 0.19.2
numpy: 1.12.1
scipy: 0.19.0
libgfortran: 3.0
- python_venv: '3.6'
python: 3.6
pandas: 0.20.1
numpy: 1.12.1
scipy: 0.19.0
libgfortran: 3.0

name: py${{ matrix.python_venv }}

steps:

- name: Checkout repository
uses: actions/checkout@v1

- name: Setup conda
run: |
export PATH="$HOME/miniconda/bin:$PATH"
conda config --set always_yes yes --set changeps1 no
conda update -q conda
- name: Install dependencies
run: |
conda create -n testenv --yes -c conda-forge pip python=${{ matrix.python }} numpy=${{ matrix.numpy }} pandas=${{ matrix.pandas }} scipy=${{ matrix.scipy }} libgfortran=${{ matrix.libgfortran }}
conda init bash
conda activate testenv
pip install -e .[dev]
flake8 .
shell: bash

- name: Linting
run: flake8 .

- name: Tests
run: |
nosetests
source deactivate

0 comments on commit 363feb2

Please sign in to comment.