-
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1.14 KB
/
install-test-testpypi.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
name: Install & test TestPyPI package
on:
workflow_dispatch:
jobs:
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: Check out repository
uses: actions/checkout@v4 # for the test data
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install homonim from Test PyPI
run: |
python -m pip install --upgrade pip
python -m pip install --extra-index-url https://test.pypi.org/simple/ --no-cache-dir --upgrade homonim
- name: Test homonim CLI
timeout-minutes: 5
run: |
cd tests/data
mkdir corrected
homonim fuse --help
homonim fuse -m gain-blk-offset -k 5 5 -od ./corrected -cmp -o ./source/ngi_rgb_byte_1.tif ./reference/landsat8_byte.tif
ls ./corrected/*
test -f ./corrected/ngi_rgb_byte_1_FUSE_cREF_mGAIN-BLK-OFFSET_k5_5.tif && echo "Test OK"