From 98119fda78eebd44f6da1ddef71c9c8b8fe08446 Mon Sep 17 00:00:00 2001 From: "Soroosh.Mani" Date: Fri, 17 Nov 2023 10:14:27 -0500 Subject: [PATCH] Activate GitHub tests on mamba for Windows --- .github/workflows/functional_test.yml | 10 +++++++++- .github/workflows/functional_test_2.yml | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/functional_test.yml b/.github/workflows/functional_test.yml index 6152eee4..17f870a0 100644 --- a/.github/workflows/functional_test.yml +++ b/.github/workflows/functional_test.yml @@ -27,7 +27,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ ubuntu-latest ] + os: [ ubuntu-latest, windows-latest ] python-version: [ '3.9', '3.10', '3.11'] steps: @@ -49,6 +49,7 @@ jobs: pip install . - name: Prepare example DEM + if: runner.os == 'Windows' shell: bash -l {0} run: | wget https://coast.noaa.gov/htdata/raster2/elevation/NCEI_ninth_Topobathy_2014_8483/northeast_sandy/ncei19_n40x75_w073x75_2015v1.tif -O /tmp/fullsize_dem.tif @@ -67,6 +68,7 @@ jobs: - name: 'Upload test dem' + if: runner.os == 'Windows' uses: actions/upload-artifact@v2 with: name: test-dem-${{ matrix.python-version }} @@ -74,10 +76,12 @@ jobs: retention-days: 7 - name: Run geom build test + if: runner.os == 'Windows' shell: bash -l {0} run: source tests/cli/build_geom.sh - name: 'Upload Geom build results' + if: runner.os == 'Windows' uses: actions/upload-artifact@v2 with: name: geom-build-results-${{ matrix.python-version }} @@ -85,10 +89,12 @@ jobs: retention-days: 7 - name: Run hfun build test + if: runner.os == 'Windows' shell: bash -l {0} run: source tests/cli/build_hfun.sh - name: 'Upload Hfun build results' + if: runner.os == 'Windows' uses: actions/upload-artifact@v2 with: name: hfun-build-results-${{ matrix.python-version }} @@ -96,10 +102,12 @@ jobs: retention-days: 7 - name: Run remesh test + if: runner.os == 'Windows' shell: bash -l {0} run: source tests/cli/remesh_by_dem.sh - name: 'Upload remesh results' + if: runner.os == 'Windows' uses: actions/upload-artifact@v2 with: name: remesh-bydem-results-${{ matrix.python-version }} diff --git a/.github/workflows/functional_test_2.yml b/.github/workflows/functional_test_2.yml index 4fc21ad1..92153e6d 100644 --- a/.github/workflows/functional_test_2.yml +++ b/.github/workflows/functional_test_2.yml @@ -28,7 +28,7 @@ jobs: fail-fast: false matrix: os: [ ubuntu-latest ] - python-version: [ '3.9', '3.10', '3.x' ] + python-version: [ '3.9', '3.10', '3.11' ] steps: - name: Checkout