-
-
Notifications
You must be signed in to change notification settings - Fork 12
37 lines (35 loc) · 1.24 KB
/
install-test-pypi.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
# Test publishing to, and installing and running with Test PyPI
name: Install & test PyPI package
on:
workflow_dispatch:
jobs:
# Install geedim from Test PyPI and test CLI
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
python-version: [ '3.8', '3.10', '3.11', '3.12' ]
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install geedim from PyPI
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade geedim
- name: Test geedim CLI
timeout-minutes: 5
env:
EE_SERVICE_ACC_PRIVATE_KEY: ${{ secrets.EE_SERVICE_ACC_PRIVATE_KEY }}
shell: bash
run: |
geedim --version
geedim --help
geedim search --help
geedim search -c l8-c2-l2 -s 2019-02-01 -e 2019-03-01 --bbox 23 -33 23.2 -33.2 composite -cm q-mosaic --mask download --scale 30 --crs EPSG:3857 -o
test -f ./data/test_example/homogenised/3324c_2015_1004_05_0182_RGB_HOMO_cREF_mGAIN-BLK-OFFSET_k5_5.tif && echo "Test OK"
pwd
ls -R