From e3d778dd349bba1cee204ea670e376d00135505d Mon Sep 17 00:00:00 2001 From: Sharon Fitzpatrick Date: Thu, 12 Dec 2024 11:55:17 -0800 Subject: [PATCH] test a workflow to test the conda package --- .../workflows/test_coastseg_conda_package.yml | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/test_coastseg_conda_package.yml diff --git a/.github/workflows/test_coastseg_conda_package.yml b/.github/workflows/test_coastseg_conda_package.yml new file mode 100644 index 0000000..6eaa1e6 --- /dev/null +++ b/.github/workflows/test_coastseg_conda_package.yml @@ -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