From a12c57e55d3b2af4d82e8ceafe5ff8b1ff52389a Mon Sep 17 00:00:00 2001 From: Alexander Kurz Date: Thu, 7 Dec 2023 12:22:43 +0100 Subject: [PATCH 1/4] Test conda environment on all operating systems --- .github/workflows/test-env.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/test-env.yaml diff --git a/.github/workflows/test-env.yaml b/.github/workflows/test-env.yaml new file mode 100644 index 0000000..150871d --- /dev/null +++ b/.github/workflows/test-env.yaml @@ -0,0 +1,29 @@ +name: Test Env + +on: + push: + branches: [main] + pull_request: + branches: [main, "release/*", "dev"] + +jobs: + run_env_tests: + name: Test Env (${{ matrix.os }}) + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: ["ubuntu-latest", "macos-latest", "windows-latest"] + steps: + - uses: conda-incubator/setup-miniconda@v3 + with: + auto-update-conda: true + activate-environment: anaconda-client-env + environment-file: environment.yaml + auto-activate-base: false + - name: Conda info + shell: bash -el {0} + run: conda info + - name: Conda list + shell: pwsh + run: conda list From 8bd46a2750e284c456ad349958e82417eb036c11 Mon Sep 17 00:00:00 2001 From: Alexander Kurz Date: Thu, 7 Dec 2023 12:25:40 +0100 Subject: [PATCH 2/4] First check out repo --- .github/workflows/test-env.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-env.yaml b/.github/workflows/test-env.yaml index 150871d..a06005c 100644 --- a/.github/workflows/test-env.yaml +++ b/.github/workflows/test-env.yaml @@ -15,6 +15,7 @@ jobs: matrix: os: ["ubuntu-latest", "macos-latest", "windows-latest"] steps: + - uses: actions/checkout@v4 - uses: conda-incubator/setup-miniconda@v3 with: auto-update-conda: true From 5a8ae51ebde4af9b9802c66ba3b413d3e890ac25 Mon Sep 17 00:00:00 2001 From: Alexander Kurz Date: Thu, 7 Dec 2023 12:36:14 +0100 Subject: [PATCH 3/4] Try to run conda commands on all platforms with bash --- .github/workflows/test-env.yaml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test-env.yaml b/.github/workflows/test-env.yaml index a06005c..8ed2c5b 100644 --- a/.github/workflows/test-env.yaml +++ b/.github/workflows/test-env.yaml @@ -18,13 +18,10 @@ jobs: - uses: actions/checkout@v4 - uses: conda-incubator/setup-miniconda@v3 with: - auto-update-conda: true - activate-environment: anaconda-client-env + activate-environment: test environment-file: environment.yaml auto-activate-base: false - - name: Conda info - shell: bash -el {0} - run: conda info - - name: Conda list - shell: pwsh - run: conda list + - shell: bash -l {0} + run: | + conda info + conda list From 4fa4c78280aadc7599fb1a3ac5705c66bc989093 Mon Sep 17 00:00:00 2001 From: Alexander Kurz Date: Thu, 7 Dec 2023 12:42:07 +0100 Subject: [PATCH 4/4] Openslide not available via conda on Windows --- .github/workflows/test-env.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-env.yaml b/.github/workflows/test-env.yaml index 8ed2c5b..f80dc60 100644 --- a/.github/workflows/test-env.yaml +++ b/.github/workflows/test-env.yaml @@ -13,7 +13,8 @@ jobs: strategy: fail-fast: false matrix: - os: ["ubuntu-latest", "macos-latest", "windows-latest"] + # os: ["ubuntu-latest", "macos-latest", "windows-latest"] # Openslide not available via conda on Windows + os: ["ubuntu-latest", "macos-latest"] steps: - uses: actions/checkout@v4 - uses: conda-incubator/setup-miniconda@v3