-
Notifications
You must be signed in to change notification settings - Fork 68
41 lines (39 loc) · 1.16 KB
/
python.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
name: Python
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
extras:
- ''
- '[speedups]'
- '[speedups,rasterio]'
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade Python bits
run: |
python -m pip install --upgrade pip coverage wheel setuptools
- name: Install development files
if: matrix.python-version == '3.9'
run: |
sudo apt-get install -y fftw3-dev
python -m pip install Cython
- name: Install app
run: python -m pip install -e ."$EXTRAS"
env:
EXTRAS: '${{ matrix.extras }}'
- name: Run app with coverage
run: coverage run -m image_similarity_measures.evaluate --metric all --org_img_path=example/lafayette_org.tif --pred_img_path=example/lafayette_pred.tif
- name: Report coverage
continue-on-error: true
run: coverage report