-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.24 KB
/
pypi-deployment.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
44
name: pypi-deployment
on: [push]
jobs:
Run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} ${{ matrix.os }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install GDAL
run: |
python -m pip install --upgrade pip
pip install --no-cache-dir Cython
pip install --find-links=https://girder.github.io/large_image_wheels --no-cache GDAL #==3.7.1
python -c "from osgeo import gdal"
gdalinfo --version
- name: libgeo and cartopy
run: |
sudo apt -y install libgeos-dev
pip install cartopy
- name: Install dependencies
run: |
pip install -r requirements.txt -r requirements-dev.txt
python setup.py install
- name: Generate coverage report
run: |
python -m pytest -vvv --cov=digitalearth --cov-report=xml
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v3