Skip to content

Commit

Permalink
Add testing for Python 3.12 (#698)
Browse files Browse the repository at this point in the history
* Add testing for Python 3.12

* Add pyzmq

* Skip keplergl

* Fix build error

* Add setuptools
  • Loading branch information
giswqs committed Mar 4, 2024
1 parent 98077c0 commit 605cec7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
miniconda-version: latest

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
mkdocs build
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v2.0
uses: nwtgck/actions-netlify@v2.1
with:
publish-dir: "./site"
production-branch: master
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
miniconda-version: latest

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install package
run: pip install .
run: pip install setuptools .
- name: Test import
run: python -c "import leafmap; print('leafmap import successful')"
10 changes: 5 additions & 5 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

defaults:
run:
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
miniconda-version: latest

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
Expand All @@ -58,7 +58,7 @@ jobs:
- name: Install GDAL
run: |
conda install -c conda-forge mamba --yes
mamba install -c conda-forge gdal pyproj --yes
mamba install -c conda-forge gdal pyproj pyzmq --yes
# - name: Test GDAL installation
# run: |
Expand All @@ -67,8 +67,8 @@ jobs:

- name: Install dependencies
run: |
pip install -r requirements.txt -r requirements_dev.txt
pip install .
# pip install -r requirements.txt -r requirements_dev.txt
pip install .
- name: Test import
run: python -c "import leafmap; print('leafmap import successful')"
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
miniconda-version: latest

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
Expand Down

0 comments on commit 605cec7

Please sign in to comment.