-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test a workflow to test the conda package
- Loading branch information
1 parent
40b91d9
commit e3d778d
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
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
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 |