From 2b6ded5b57da6fd90b72cff39c54ffc39b2bc0f6 Mon Sep 17 00:00:00 2001 From: Michelly <80424929+Michelly-GC@users.noreply.github.com> Date: Wed, 31 Mar 2021 01:28:05 -0300 Subject: [PATCH 1/6] Create .tests.yml --- .github/workflows/.tests.yml | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/.tests.yml diff --git a/.github/workflows/.tests.yml b/.github/workflows/.tests.yml new file mode 100644 index 0000000..97825e9 --- /dev/null +++ b/.github/workflows/.tests.yml @@ -0,0 +1,38 @@ +name: Tests + +on: + pull_request: + push: + branches: [master] + +jobs: + run: + runs-on: ${{ matrix.os }} + strategy: + matrix: + python-version: ["3.7", "3.8", "3.9"] + os: [windows-latest, ubuntu-latest, macos-latest] + + steps: + - uses: actions/checkout@v2 + + - name: Setup Conda + uses: s-weigand/setup-conda@v1 + with: + activate-conda: false + 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 --vcr-record=none tests \ No newline at end of file From 0b2bf8e47d1a66348d23f7f21f4ab8a0b214ac7a Mon Sep 17 00:00:00 2001 From: Michelly <80424929+Michelly-GC@users.noreply.github.com> Date: Wed, 31 Mar 2021 03:11:14 -0300 Subject: [PATCH 2/6] Update .tests.yml --- .github/workflows/.tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/.tests.yml b/.github/workflows/.tests.yml index 97825e9..a9e400a 100644 --- a/.github/workflows/.tests.yml +++ b/.github/workflows/.tests.yml @@ -35,4 +35,5 @@ jobs: shell: bash -l {0} run: | source activate TEST - pytest -rxs --cov=oceans --vcr-record=none tests \ No newline at end of file + pytest -rxs --cov=oceans --vcr-record=none tests + \ No newline at end of file From 2ac43bc3780360e316ddbb777bfe2a36657c3113 Mon Sep 17 00:00:00 2001 From: Michelly <80424929+Michelly-GC@users.noreply.github.com> Date: Wed, 31 Mar 2021 03:17:48 -0300 Subject: [PATCH 3/6] Update .tests.yml --- .github/workflows/.tests.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/.tests.yml b/.github/workflows/.tests.yml index a9e400a..db860fa 100644 --- a/.github/workflows/.tests.yml +++ b/.github/workflows/.tests.yml @@ -35,5 +35,4 @@ jobs: shell: bash -l {0} run: | source activate TEST - pytest -rxs --cov=oceans --vcr-record=none tests - \ No newline at end of file + pytest -rxs --cov=oceans --vcr-record=none tests \ No newline at end of file From 9bd0c7e45d3d90a20fe24f9e0471e5bed93117cd Mon Sep 17 00:00:00 2001 From: Michelly <80424929+Michelly-GC@users.noreply.github.com> Date: Wed, 31 Mar 2021 03:28:22 -0300 Subject: [PATCH 4/6] test --- .github/workflows/.tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/.tests.yml b/.github/workflows/.tests.yml index db860fa..0a4600d 100644 --- a/.github/workflows/.tests.yml +++ b/.github/workflows/.tests.yml @@ -30,7 +30,6 @@ jobs: pip install -e . --no-deps --force-reinstall conda info --all conda list - - name: Tests shell: bash -l {0} run: | From e394dceaa3b523c94a69c9383b6a8f6b18e89119 Mon Sep 17 00:00:00 2001 From: Michelly <80424929+Michelly-GC@users.noreply.github.com> Date: Wed, 31 Mar 2021 22:14:29 -0300 Subject: [PATCH 5/6] Commit --- .github/workflows/{.tests.yml => tests.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{.tests.yml => tests.yml} (93%) diff --git a/.github/workflows/.tests.yml b/.github/workflows/tests.yml similarity index 93% rename from .github/workflows/.tests.yml rename to .github/workflows/tests.yml index 0a4600d..d6edc8d 100644 --- a/.github/workflows/.tests.yml +++ b/.github/workflows/tests.yml @@ -34,4 +34,4 @@ jobs: shell: bash -l {0} run: | source activate TEST - pytest -rxs --cov=oceans --vcr-record=none tests \ No newline at end of file + pytest -rxs --cov=oceans tests \ No newline at end of file From f9a1637f1c619329ff88d93fd8152c6a4402e0a8 Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Thu, 1 Apr 2021 15:21:11 -0300 Subject: [PATCH 6/6] fix end of file --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d6edc8d..fa55bac 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -34,4 +34,4 @@ jobs: shell: bash -l {0} run: | source activate TEST - pytest -rxs --cov=oceans tests \ No newline at end of file + pytest -rxs --cov=oceans tests