From 4a62eb95d2e896007d31376c13081c9bb38b81d0 Mon Sep 17 00:00:00 2001 From: Qiusheng Wu Date: Mon, 18 Dec 2023 22:27:19 -0500 Subject: [PATCH] Update GitHub Actions to use Python 3.12 (#1850) * Update GitHub Actions to use Python 3.12 * Add setuptools --- .github/workflows/installation.yml | 6 ++++-- .github/workflows/macos.yml | 10 +--------- .github/workflows/windows.yml | 13 ++----------- 3 files changed, 7 insertions(+), 22 deletions(-) diff --git a/.github/workflows/installation.yml b/.github/workflows/installation.yml index 9126c5cfe4..af293c37b6 100644 --- a/.github/workflows/installation.yml +++ b/.github/workflows/installation.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10"] + python-version: ["3.12"] steps: - uses: actions/checkout@v3 - name: Set up Python @@ -21,6 +21,8 @@ jobs: 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')" diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 6bcb1341a9..d95989a253 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -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: @@ -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 }} diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 8d72cf4bd8..c55c23dc53 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -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" @@ -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 }}