-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,065 changed files
with
21,358 additions
and
8,019 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
File renamed without changes.
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,35 +1,36 @@ | ||
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "devcontainers" | ||
directory: "/.devcontainer" | ||
- package-ecosystem: 'devcontainers' | ||
directory: '/.devcontainer' | ||
schedule: | ||
interval: "weekly" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
interval: 'weekly' | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: "weekly" | ||
- package-ecosystem: "pip" | ||
directory: "/requirements" | ||
interval: 'weekly' | ||
- package-ecosystem: 'pip' | ||
directory: '/requirements' | ||
schedule: | ||
interval: "daily" | ||
interval: 'daily' | ||
groups: | ||
# torchvision pins torch, must update in unison | ||
torch: | ||
patterns: | ||
- "torch" | ||
- "torchvision" | ||
- 'torch' | ||
- 'torchvision' | ||
ignore: | ||
# setuptools releases new versions almost daily | ||
- dependency-name: "setuptools" | ||
update-types: ["version-update:semver-patch"] | ||
- dependency-name: 'setuptools' | ||
update-types: ['version-update:semver-patch'] | ||
# sphinx 6 is incompatible with pytorch-sphinx-theme | ||
# https://github.com/pytorch/pytorch_sphinx_theme/issues/175 | ||
- dependency-name: "sphinx" | ||
versions: ">=6" | ||
- dependency-name: 'sphinx' | ||
versions: '>=6' | ||
# segmentation-models-pytorch pins timm, must update in unison | ||
- dependency-name: "timm" | ||
- package-ecosystem: "npm" | ||
directory: "/requirements" | ||
- dependency-name: 'timm' | ||
- package-ecosystem: 'npm' | ||
directory: '/' | ||
schedule: | ||
interval: "weekly" | ||
interval: 'weekly' | ||
versioning-strategy: 'lockfile-only' |
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,48 +1,48 @@ | ||
# TorchGeo modules | ||
datamodules: | ||
- changed-files: | ||
- any-glob-to-any-file: "torchgeo/datamodules/**" | ||
- any-glob-to-any-file: 'torchgeo/datamodules/**' | ||
datasets: | ||
- changed-files: | ||
- any-glob-to-any-file: "torchgeo/datasets/**" | ||
- any-glob-to-any-file: 'torchgeo/datasets/**' | ||
losses: | ||
- changed-files: | ||
- any-glob-to-any-file: "torchgeo/losses/**" | ||
- any-glob-to-any-file: 'torchgeo/losses/**' | ||
models: | ||
- changed-files: | ||
- any-glob-to-any-file: "torchgeo/models/**" | ||
- any-glob-to-any-file: 'torchgeo/models/**' | ||
samplers: | ||
- changed-files: | ||
- any-glob-to-any-file: "torchgeo/samplers/**" | ||
- any-glob-to-any-file: 'torchgeo/samplers/**' | ||
trainers: | ||
- changed-files: | ||
- any-glob-to-any-file: "torchgeo/trainers/**" | ||
- any-glob-to-any-file: 'torchgeo/trainers/**' | ||
transforms: | ||
- changed-files: | ||
- any-glob-to-any-file: "torchgeo/transforms/**" | ||
- any-glob-to-any-file: 'torchgeo/transforms/**' | ||
|
||
# Other | ||
dependencies: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- "pyproject.toml" | ||
- "requirements/**" | ||
- ".github/dependabot.yml" | ||
- 'pyproject.toml' | ||
- 'requirements/**' | ||
- '.github/dependabot.yml' | ||
documentation: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- "docs/**" | ||
- "*.md" | ||
- ".github/*.md" | ||
- ".readthedocs.yaml" | ||
- 'docs/**' | ||
- '*.md' | ||
- '.github/*.md' | ||
- '.readthedocs.yaml' | ||
scripts: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- "torchgeo/__main__.py" | ||
- "torchgeo/main.py" | ||
- "experiments/**" | ||
- 'torchgeo/__main__.py' | ||
- 'torchgeo/main.py' | ||
- 'experiments/**' | ||
testing: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- "tests/**" | ||
- ".github/workflows/**" | ||
- 'tests/**' | ||
- '.github/workflows/**' |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: deploy | ||
on: | ||
release: | ||
types: | ||
- published | ||
jobs: | ||
build: | ||
name: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repo | ||
uses: actions/[email protected] | ||
- name: Set up python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: '3.12' | ||
- name: Install pip dependencies | ||
run: pip install build | ||
- name: List pip dependencies | ||
run: pip list | ||
- name: Build project | ||
run: python3 -m build | ||
- name: Upload artifacts | ||
uses: actions/[email protected] | ||
with: | ||
name: pypi-dist | ||
path: dist/ | ||
pypi: | ||
name: pypi | ||
needs: | ||
- build | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/torchgeo | ||
permissions: | ||
id-token: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download artifacts | ||
uses: actions/[email protected] | ||
with: | ||
name: pypi-dist | ||
path: dist/ | ||
- name: Publish to PyPI | ||
uses: pypa/[email protected] |
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,4 +1,4 @@ | ||
name: "labeler" | ||
name: 'labeler' | ||
on: | ||
- pull_request_target | ||
jobs: | ||
|
@@ -9,7 +9,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v4.1.6 | ||
uses: actions/checkout@v4.2.2 | ||
- name: Add label | ||
uses: actions/[email protected] | ||
with: | ||
|
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 |
---|---|---|
|
@@ -6,23 +6,27 @@ on: | |
pull_request: | ||
branches: | ||
- release** | ||
defaults: | ||
run: | ||
shell: bash | ||
jobs: | ||
integration: | ||
name: integration | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v4.1.6 | ||
uses: actions/checkout@v4.2.2 | ||
- name: Set up python | ||
uses: actions/[email protected] | ||
id: setup-python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: "3.12" | ||
python-version: '3.12' | ||
- name: Cache dependencies | ||
uses: actions/cache@v4.0.2 | ||
uses: actions/cache@v4.2.0 | ||
id: cache | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-integration | ||
key: ${{ runner.os }}-${{ runner.arch }}-Python-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('pyproject.toml') }} | ||
- name: Install pip dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: | | ||
|
@@ -40,21 +44,22 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v4.1.6 | ||
uses: actions/checkout@v4.2.2 | ||
- name: Set up python | ||
uses: actions/[email protected] | ||
id: setup-python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: "3.12" | ||
python-version: '3.12' | ||
- name: Cache dependencies | ||
uses: actions/cache@v4.0.2 | ||
uses: actions/cache@v4.2.0 | ||
id: cache | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-tutorials | ||
key: ${{ runner.os }}-${{ runner.arch }}-Python-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('pyproject.toml') }}-tutorials | ||
- name: Install pip dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: | | ||
pip install .[docs,tests] planetary_computer pystac | ||
pip install .[docs,tests] planetary_computer pystac tensorboard | ||
pip cache purge | ||
- name: List pip dependencies | ||
run: pip list | ||
|
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 |
---|---|---|
|
@@ -8,23 +8,27 @@ on: | |
branches: | ||
- main | ||
- release** | ||
defaults: | ||
run: | ||
shell: bash | ||
jobs: | ||
mypy: | ||
name: mypy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v4.1.6 | ||
uses: actions/checkout@v4.2.2 | ||
- name: Set up python | ||
uses: actions/[email protected] | ||
id: setup-python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: "3.12" | ||
python-version: '3.12' | ||
- name: Cache dependencies | ||
uses: actions/cache@v4.0.2 | ||
uses: actions/cache@v4.2.0 | ||
id: cache | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements/required.txt') }}-${{ hashFiles('requirements/datasets.txt') }}-${{ hashFiles('requirements/style.txt') }}-${{ hashFiles('requirements/tests.txt') }} | ||
key: ${{ runner.os }}-${{ runner.arch }}-Python-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('requirements/required.txt', 'requirements/datasets.txt', 'requirements/style.txt', 'requirements/tests.txt') }} | ||
- name: Install pip dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: | | ||
|
@@ -39,17 +43,18 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v4.1.6 | ||
uses: actions/checkout@v4.2.2 | ||
- name: Set up python | ||
uses: actions/[email protected] | ||
id: setup-python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: "3.12" | ||
python-version: '3.12' | ||
- name: Cache dependencies | ||
uses: actions/cache@v4.0.2 | ||
uses: actions/cache@v4.2.0 | ||
id: cache | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements/style.txt') }} | ||
key: ${{ runner.os }}-${{ runner.arch }}-Python-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('requirements/style.txt') }} | ||
- name: Install pip dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: | | ||
|
@@ -66,21 +71,21 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v4.1.6 | ||
uses: actions/checkout@v4.2.2 | ||
- name: Set up nodejs | ||
uses: actions/setup-node@v4.0.2 | ||
uses: actions/setup-node@v4.1.0 | ||
with: | ||
node-version: "20" | ||
cache: "npm" | ||
cache-dependency-path: "requirements/package-lock.json" | ||
node-version: '20' | ||
cache: 'npm' | ||
cache-dependency-path: 'package-lock.json' | ||
- name: Installing prettier | ||
run: | | ||
npm install requirements/ | ||
npm install | ||
npm cache clean --force | ||
- name: List npm dependencies | ||
run: npm ls --all | ||
- name: Run prettier formatting | ||
run: npx prettier . --check | ||
run: npx prettier --check . | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.head.label || github.head_ref || github.ref }} | ||
cancel-in-progress: true |
Oops, something went wrong.