test a workflow to test the conda package #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |