Skip to content

Commit

Permalink
Update GitHub Actions to use Python 3.12 (#1850)
Browse files Browse the repository at this point in the history
* Update GitHub Actions to use Python 3.12

* Add setuptools
  • Loading branch information
giswqs authored Dec 19, 2023
1 parent 8e8fe3d commit 4a62eb9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 22 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
python-version: ["3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install package
run: pip install .
run: |
pip install setuptools
pip install .
- name: Test import
run: python -c "import geemap; print('geemap import successful')"
10 changes: 1 addition & 9 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
matrix:
config:
- { os: macOS-latest, py: "3.9" }
- { os: macOS-latest, py: "3.11" }
env:
SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
steps:
Expand All @@ -31,11 +31,3 @@ jobs:
pip install --no-cache-dir Cython
pip install codespell -r requirements.txt
pip install .
# - name: Discover typos with codespell
# run: codespell --skip="*.csv,*.geojson,*.json,*.js,*.html,*cff" --ignore-words-list="aci,acount,acounts,fallow,hart,hist,nd,ned,ois,wqs"
# - name: PKG-TEST
# run: |
# python -m unittest discover tests/
# env:
# HEREMAPS_API_KEY: ${{ secrets.HEREMAPS_API_KEY }}
# PLANET_API_KEY: ${{ secrets.PLANET_API_KEY }}
13 changes: 2 additions & 11 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
uses: conda-incubator/setup-miniconda@v2
with:
auto-activate-base: true
python-version: 3.9
python-version: "3.11"
- name: Install GDAL
run: conda install -c conda-forge gdal=3.4.0 --yes
run: conda install -c conda-forge gdal --yes
- name: Test GDAL installation
run: |
python -c "from osgeo import gdal"
Expand All @@ -29,12 +29,3 @@ jobs:
pip install --no-cache-dir Cython
pip install -r codespell requirements.txt
pip install .
# - name: Discover typos with codespell
# run: codespell --skip="*.csv,*.geojson,*.json,*.js,*.html,*cff" --ignore-words-list="aci,acount,acounts,fallow,hart,hist,nd,ned,ois,wqs"
# - name: PKG-TEST
# run: |
# python -m unittest discover tests/
# env:
# HEREMAPS_API_KEY: ${{ secrets.HEREMAPS_API_KEY }}
# PLANET_API_KEY: ${{ secrets.PLANET_API_KEY }}
# EARTHENGINE_TOKEN: ${{ secrets.EARTHENGINE_TOKEN }}

0 comments on commit 4a62eb9

Please sign in to comment.