Skip to content

Commit

Permalink
Activate GitHub tests on mamba for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
SorooshMani-NOAA committed Nov 17, 2023
1 parent e2c0aa8 commit 98119fd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/functional_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -67,39 +68,46 @@ jobs:


- name: 'Upload test dem'
if: runner.os == 'Windows'
uses: actions/upload-artifact@v2
with:
name: test-dem-${{ matrix.python-version }}
path: /tmp/test_dem.tif
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 }}
path: test_shape
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 }}
path: test.2dm
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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/functional_test_2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98119fd

Please sign in to comment.