Skip to content

Commit

Permalink
add pypi deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MAfarrag committed Dec 20, 2023
1 parent ad7ca2a commit 622a0fd
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 129 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/automerge.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/clones_count.yml

This file was deleted.

72 changes: 0 additions & 72 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/pypi-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit 622a0fd

Please sign in to comment.