-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add uv to GitHub Actions * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update toml --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
2011566
commit 408cfc8
Showing
10 changed files
with
8,394 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "docker" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,51 @@ | ||
name: docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
- name: Install GDAL | ||
fetch-depth: 0 | ||
|
||
- name: Install uv | ||
uses: astral-sh/setup-uv@v2 | ||
with: | ||
version: "0.4.12" | ||
enable-cache: true | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
run: uv python install ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: uv sync --python ${{ matrix.python-version }} | ||
|
||
- name: Install optional dependencies | ||
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 | ||
- name: Test GDAL installation | ||
uv pip install --find-links https://girder.github.io/large_image_wheels GDAL pyproj | ||
uv pip install pytest | ||
uv pip install -r requirements_dev.txt | ||
- name: Test import | ||
run: | | ||
python -c "from osgeo import gdal" | ||
gdalinfo --version | ||
- name: Install dependencies | ||
uv run python -c "import geospatial; print('geospatial import successful')" | ||
uv run python -c "from osgeo import gdal; print('gdal import successful')" | ||
uv run gdalinfo --version | ||
- name: Running pytest | ||
run: | | ||
pip install --user -r requirements.txt -r requirements_dev.txt | ||
pip install . | ||
- name: Discover typos with codespell | ||
run: codespell --skip="*.csv,*.geojson,*.json,*.js,*.html,*cff,./.git" --ignore-words-list="aci,acount,acounts,fallow,hart,hist,nd,ned,ois,wqs,watermask" | ||
- name: PKG-TEST | ||
uv run pytest . --verbose | ||
- name: Install mkdocs | ||
run: | | ||
python -m unittest discover tests/ | ||
- run: pip install -r requirements_docs.txt | ||
- run: mkdocs gh-deploy --force | ||
uv pip install -r requirements_docs.txt | ||
uv run mkdocs gh-deploy --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,46 @@ | ||
name: TestingUbuntu | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
branches: ["master"] | ||
pull_request: | ||
branches: | ||
- master | ||
branches: ["master"] | ||
|
||
name: Linux build | ||
jobs: | ||
test-ubuntu: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
|
||
- name: Install uv | ||
uses: astral-sh/setup-uv@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- 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 | ||
- name: Test GDAL installation | ||
run: | | ||
python -c "from osgeo import gdal" | ||
gdalinfo --version | ||
version: "0.4.12" | ||
enable-cache: true | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
run: uv python install ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: uv sync --python ${{ matrix.python-version }} | ||
|
||
- name: Install optional dependencies | ||
run: | | ||
pip install -r requirements.txt -r requirements_dev.txt | ||
pip install . | ||
- name: PKG-TEST | ||
uv pip install --find-links https://girder.github.io/large_image_wheels gdal pyproj | ||
uv pip install pytest | ||
- name: Test import | ||
run: | | ||
uv run python -c "import geospatial; print('geospatial import successful')" | ||
uv run python -c "from osgeo import gdal; print('gdal import successful')" | ||
uv run gdalinfo --version | ||
- name: Running pytest | ||
run: | | ||
python -m unittest discover tests/ | ||
uv run pytest . --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,34 @@ | ||
name: "TestingWindows" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
name: Windows build | ||
jobs: | ||
test-windows: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install miniconda | ||
uses: conda-incubator/setup-miniconda@v3 | ||
|
||
- name: Install uv | ||
uses: astral-sh/setup-uv@v2 | ||
with: | ||
auto-activate-base: true | ||
python-version: "3.12" | ||
- name: Install GDAL | ||
run: | | ||
conda install -c conda-forge gdal --yes | ||
- name: Test GDAL installation | ||
run: | | ||
python -c "from osgeo import gdal" | ||
gdalinfo --version | ||
version: "0.4.12" | ||
enable-cache: true | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
run: uv python install ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: uv sync --python ${{ matrix.python-version }} | ||
|
||
- name: Test import | ||
run: | | ||
pip install --upgrade setuptools | ||
python -m pip install --upgrade pip | ||
pip install --no-cache-dir Cython | ||
pip install -r requirements.txt | ||
pip install . | ||
uv run python -c "import geospatial; print('geospatial import successful')" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.