Skip to content

Commit

Permalink
activate venv in each step.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dani Sim committed Sep 27, 2019
1 parent fda429d commit c588fa8
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/ci-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,34 +56,28 @@ jobs:
uses: actions/checkout@v1

- name: Setup conda
env:
PATH: "/usr/share/miniconda/bin:$PATH"
run: |
echo $PATH # temp
export PATH="/usr/share/miniconda/bin:$PATH"
conda config --set always_yes yes --set changeps1 no
conda update -q conda
- name: Install dependencies
env:
PATH: "/usr/share/miniconda/bin:$PATH"
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
env:
PATH: "/usr/share/miniconda/bin:$PATH"
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
source activate testenv
flake8 .
- name: Tests
env:
PATH: "/usr/share/miniconda/bin:$PATH"
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
source activate testenv
nosetests
source deactivate

0 comments on commit c588fa8

Please sign in to comment.