From 6095e67404f69fc5093148cac9aae546889e433c Mon Sep 17 00:00:00 2001 From: zm711 <92116279+zm711@users.noreply.github.com> Date: Mon, 6 Jan 2025 16:16:59 -0500 Subject: [PATCH 1/6] fix python version for environment --- .github/workflows/io-test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/io-test.yml b/.github/workflows/io-test.yml index e5e0cd3a5..6be353d37 100644 --- a/.github/workflows/io-test.yml +++ b/.github/workflows/io-test.yml @@ -69,13 +69,16 @@ jobs: ${{ runner.os }}-conda-env-${{ steps.dependencies.outputs.hash }}- ${{ runner.os }}-conda-env- + - name: Install Python Version + run: | + conda install python=${{ matrix.python-version }} + - name: Install testing dependencies # testing environment is only created from yml if no cache was found # restore-key hits should result in `cache-hit` == 'false' if: steps.cache-conda-env.outputs.cache-hit != 'true' run: | conda env update --name neo-test-env --file environment_testing.yml --prune - conda install python=${{ matrix.python-version }} - name: Configure git run: | From 2a1dc4d6e03985dd86ea8ea77de9400ca48f4290 Mon Sep 17 00:00:00 2001 From: zm711 <92116279+zm711@users.noreply.github.com> Date: Tue, 7 Jan 2025 06:36:20 -0500 Subject: [PATCH 2/6] install pip with python --- .github/workflows/io-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/io-test.yml b/.github/workflows/io-test.yml index 6be353d37..0fcdf7374 100644 --- a/.github/workflows/io-test.yml +++ b/.github/workflows/io-test.yml @@ -71,7 +71,7 @@ jobs: - name: Install Python Version run: | - conda install python=${{ matrix.python-version }} + conda install python=${{ matrix.python-version }} pip - name: Install testing dependencies # testing environment is only created from yml if no cache was found From 67e2fae486298c7c7f61a2764c0f7149e1b2595b Mon Sep 17 00:00:00 2001 From: zm711 <92116279+zm711@users.noreply.github.com> Date: Tue, 7 Jan 2025 16:57:18 -0500 Subject: [PATCH 3/6] test force reinstall for pip --- .github/workflows/io-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/io-test.yml b/.github/workflows/io-test.yml index 0fcdf7374..b2fb4829b 100644 --- a/.github/workflows/io-test.yml +++ b/.github/workflows/io-test.yml @@ -71,7 +71,7 @@ jobs: - name: Install Python Version run: | - conda install python=${{ matrix.python-version }} pip + conda install --force-reinstall python=${{ matrix.python-version }} pip - name: Install testing dependencies # testing environment is only created from yml if no cache was found From 7f5d77b965fe08f3cd575cd2a7d13ed32dde901b Mon Sep 17 00:00:00 2001 From: zm711 <92116279+zm711@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:03:33 -0500 Subject: [PATCH 4/6] add pytest too --- .github/workflows/io-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/io-test.yml b/.github/workflows/io-test.yml index b2fb4829b..143ce82e8 100644 --- a/.github/workflows/io-test.yml +++ b/.github/workflows/io-test.yml @@ -71,7 +71,7 @@ jobs: - name: Install Python Version run: | - conda install --force-reinstall python=${{ matrix.python-version }} pip + conda install --force-reinstall python=${{ matrix.python-version }} pip pytest - name: Install testing dependencies # testing environment is only created from yml if no cache was found From 55d71f36f2a9b10ee20c02721a675525f6737f06 Mon Sep 17 00:00:00 2001 From: zm711 <92116279+zm711@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:13:38 -0500 Subject: [PATCH 5/6] try caching conda env instead --- .github/workflows/io-test.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/io-test.yml b/.github/workflows/io-test.yml index 143ce82e8..6b5721bf8 100644 --- a/.github/workflows/io-test.yml +++ b/.github/workflows/io-test.yml @@ -48,7 +48,7 @@ jobs: - uses: conda-incubator/setup-miniconda@v3 with: - activate-environment: neo-test-env + activate-environment: neo-test-env-${{ matrix.python-version }} python-version: "${{ matrix.python-version }}" - name: Get current dependencies hash @@ -62,17 +62,13 @@ jobs: # * when package dependencies change id: cache-conda-env with: - path: /usr/share/miniconda/envs/neo-test-env + path: /usr/share/miniconda/envs/neo-test-env-${{ matrix.python-version }} key: ${{ runner.os }}-conda-env-${{ steps.dependencies.outputs.hash }}-${{ steps.date.outputs.date }} # restore-keys match any key that starts with the restore-key restore-keys: | ${{ runner.os }}-conda-env-${{ steps.dependencies.outputs.hash }}- ${{ runner.os }}-conda-env- - - name: Install Python Version - run: | - conda install --force-reinstall python=${{ matrix.python-version }} pip pytest - - name: Install testing dependencies # testing environment is only created from yml if no cache was found # restore-key hits should result in `cache-hit` == 'false' From 44ca3cccb161fd1498cc202c58da61d247a64c74 Mon Sep 17 00:00:00 2001 From: zm711 <92116279+zm711@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:25:10 -0500 Subject: [PATCH 6/6] oops --- .github/workflows/io-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/io-test.yml b/.github/workflows/io-test.yml index 6b5721bf8..189418e51 100644 --- a/.github/workflows/io-test.yml +++ b/.github/workflows/io-test.yml @@ -74,7 +74,7 @@ jobs: # restore-key hits should result in `cache-hit` == 'false' if: steps.cache-conda-env.outputs.cache-hit != 'true' run: | - conda env update --name neo-test-env --file environment_testing.yml --prune + conda env update --name neo-test-env-${{ matrix.python-version }} --file environment_testing.yml --prune - name: Configure git run: |