Skip to content

Commit 6027fd4

Browse files
author
Dani Sim
committed
Add Github Actions CI.
1 parent 4cb0508 commit 6027fd4

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed

.github/workflows/ci-workflow.yaml

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: Empyrical CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build-and-test:
7+
8+
runs-on: ubuntu-18.04
9+
10+
strategy:
11+
matrix:
12+
python_venv: ['2.7_v1', '2.7_v2', '2.7_v3', '3.5_v1', '3.5_v2', '3.6']
13+
include:
14+
- python_venv: '2.7_v1'
15+
python: 2.7
16+
pandas: 0.18.1
17+
numpy: 1.11.1
18+
scipy: 0.17.1
19+
libgfortran: 3.0
20+
- python_venv: '2.7_v2'
21+
python: 2.7
22+
pandas: 0.19.2
23+
numpy: 1.12.1
24+
scipy: 0.19.0
25+
libgfortran: 3.0
26+
- python_venv: '2.7_v3'
27+
python: 2.7
28+
pandas: 0.20.1
29+
numpy: 1.12.1
30+
scipy: 0.19.0
31+
libgfortran: 3.0
32+
- python_venv: '3.5_v1'
33+
python: 3.5
34+
pandas: 0.18.1
35+
numpy: 1.11.1
36+
scipy: 0.17.1
37+
libgfortran: 3.0
38+
- python_venv: '3.5_v2'
39+
python: 3.5
40+
pandas: 0.19.2
41+
numpy: 1.12.1
42+
scipy: 0.19.0
43+
libgfortran: 3.0
44+
- python_venv: '3.6'
45+
python: 3.6
46+
pandas: 0.20.1
47+
numpy: 1.12.1
48+
scipy: 0.19.0
49+
libgfortran: 3.0
50+
51+
name: py${{ matrix.python_venv }}
52+
53+
steps:
54+
55+
- name: Checkout repository
56+
uses: actions/checkout@v1
57+
58+
- name: Setup conda
59+
run: |
60+
export PATH="/usr/share/miniconda/bin:$PATH"
61+
conda config --set always_yes yes --set changeps1 no
62+
conda update -q conda
63+
64+
- name: Install dependencies
65+
run: |
66+
export PATH="/usr/share/miniconda/bin:$PATH"
67+
conda create -n testenv --yes -c conda-forge pip python=${{ matrix.python }} numpy=${{ matrix.numpy }} pandas=${{ matrix.pandas }} scipy=${{ matrix.scipy }} libgfortran=${{ matrix.libgfortran }}
68+
source activate testenv
69+
pip install -e .[dev]
70+
shell: bash
71+
72+
- name: Linting
73+
run: |
74+
export PATH="/usr/share/miniconda/bin:$PATH"
75+
source activate testenv
76+
flake8 .
77+
78+
- name: Tests
79+
run: |
80+
export PATH="/usr/share/miniconda/bin:$PATH"
81+
source activate testenv
82+
nosetests
83+

0 commit comments

Comments
 (0)