From 6027fd4679e792da70a8fdb20e63f4968eed8f36 Mon Sep 17 00:00:00 2001 From: Dani Sim Date: Tue, 24 Sep 2019 14:25:05 -0400 Subject: [PATCH] Add Github Actions CI. --- .github/workflows/ci-workflow.yaml | 83 ++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 .github/workflows/ci-workflow.yaml diff --git a/.github/workflows/ci-workflow.yaml b/.github/workflows/ci-workflow.yaml new file mode 100644 index 0000000..d7cd7c0 --- /dev/null +++ b/.github/workflows/ci-workflow.yaml @@ -0,0 +1,83 @@ +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="/usr/share/miniconda/bin:$PATH" + conda config --set always_yes yes --set changeps1 no + conda update -q conda + + - name: Install dependencies + run: | + export PATH="/usr/share/miniconda/bin:$PATH" + conda create -n testenv --yes -c conda-forge pip python=${{ matrix.python }} numpy=${{ matrix.numpy }} pandas=${{ matrix.pandas }} scipy=${{ matrix.scipy }} libgfortran=${{ matrix.libgfortran }} + source activate testenv + pip install -e .[dev] + shell: bash + + - name: Linting + run: | + export PATH="/usr/share/miniconda/bin:$PATH" + source activate testenv + flake8 . + + - name: Tests + run: | + export PATH="/usr/share/miniconda/bin:$PATH" + source activate testenv + nosetests +