Skip to content

Commit

Permalink
test a workflow to test the conda package
Browse files Browse the repository at this point in the history
  • Loading branch information
2320sharon committed Dec 12, 2024
1 parent 40b91d9 commit e3d778d
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test_coastseg_conda_package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
on:
push:
branches: [test_actions]
pull_request:
branches: [test_actions]

name: Test CoastSeg Conda Installation
jobs:
Test:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
python-version: "3.10"
channels: conda-forge,defaults
- run: |
conda info
- name: Install CoastSeg from Conda
run: |
conda install -c conda-forge coastseg -y
pip install tensorflow
- name: Pip install pytest
run: |
pip install pytest
- name: Test with pytest
run: |
cd tests
python -m pytest

0 comments on commit e3d778d

Please sign in to comment.