-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (42 loc) · 1.03 KB
/
pip_install_e.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
42
43
on:
push:
branches: [main]
pull_request:
branches: [main]
name: Test CoastSeg Pip 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
conda list
- name: Install coastseg with pip install -e .
run: |
pip install -e . --user
- name: Install dependencies
run: |
conda install -c conda-forge gdal -y
pip install tensorflow
- name: Pip install pytest
run: |
pip install pytest
- name: Test with pytest
run: |
cd tests
python -m pytest