-
Notifications
You must be signed in to change notification settings - Fork 11
41 lines (40 loc) · 1014 Bytes
/
test_coastseg.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
on:
push:
branches: [main]
pull_request:
branches: [main]
name: Test CoastSeg
jobs:
Test:
name: ${{ matrix.os }}, ${{ matrix.env }}
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
# tensorflow supports up to python 3.10
os: [ubuntu-latest, windows-latest, macos-latest]
env: [ci/envs/310-coastseg.yaml]
steps:
- uses: actions/checkout@v3
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v2
with:
environment-file: ${{ matrix.env }}
miniconda-version: "latest"
- run: |
conda info
conda list
- name: Install coastseg from pip
run: |
python -m pip install --upgrade pip
pip install coastseg --user
- name: Pip install pytest
run: |
pip install pytest
- name: Test with pytest
run: |
cd tests
python -m pytest