From c588fa81629e2c551e5c29cfe22a156f63b42cbe Mon Sep 17 00:00:00 2001 From: Dani Sim Date: Fri, 27 Sep 2019 10:32:34 -0400 Subject: [PATCH] activate venv in each step. --- .github/workflows/ci-workflow.yaml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci-workflow.yaml b/.github/workflows/ci-workflow.yaml index b2cd923..1e0a6e6 100644 --- a/.github/workflows/ci-workflow.yaml +++ b/.github/workflows/ci-workflow.yaml @@ -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