From 7d27d11319b1d59f76f1edcf3d1bd9605d1cff33 Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Mon, 19 Apr 2021 15:33:06 -0300 Subject: [PATCH 1/3] rename GHA and clean it up --- .github/workflows/tests.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fa55bac..9a0c0be 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: Tests +name: Conda-tests on: pull_request: @@ -23,15 +23,14 @@ jobs: conda-channels: conda-forge - name: Python ${{ matrix.python-version }} - shell: bash -l {0} run: | conda create --name TEST python=${{ matrix.python-version }} --file requirements.txt --file requirements-dev.txt source activate TEST pip install -e . --no-deps --force-reinstall conda info --all conda list + - name: Tests - shell: bash -l {0} run: | source activate TEST pytest -rxs --cov=oceans tests From f8529109a27f038fc1729c7fdd1e95b3d429a9db Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Mon, 19 Apr 2021 16:52:45 -0300 Subject: [PATCH 2/3] rename --- .github/workflows/{tests.yml => conda-tests.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{tests.yml => conda-tests.yml} (100%) diff --git a/.github/workflows/tests.yml b/.github/workflows/conda-tests.yml similarity index 100% rename from .github/workflows/tests.yml rename to .github/workflows/conda-tests.yml From 1c840e5d8c1c7738b9c0ba12f7601906818b2091 Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Mon, 19 Apr 2021 17:14:34 -0300 Subject: [PATCH 3/3] we need shell: bash -l {0} when we call source activate --- .github/workflows/conda-tests.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/conda-tests.yml b/.github/workflows/conda-tests.yml index 9a0c0be..b4cf722 100644 --- a/.github/workflows/conda-tests.yml +++ b/.github/workflows/conda-tests.yml @@ -23,6 +23,7 @@ jobs: conda-channels: conda-forge - name: Python ${{ matrix.python-version }} + shell: bash -l {0} run: | conda create --name TEST python=${{ matrix.python-version }} --file requirements.txt --file requirements-dev.txt source activate TEST @@ -31,6 +32,7 @@ jobs: conda list - name: Tests + shell: bash -l {0} run: | source activate TEST pytest -rxs --cov=oceans tests