-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from OPERA-Cal-Val/dev
v0.0.1
- Loading branch information
Showing
34 changed files
with
3,682 additions
and
173 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,22 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
### The bug | ||
<!-- Please include a clear and concise description of what the bug is. Describe | ||
what actually happened *and* what you expected to happen. --> | ||
|
||
### To Reproduce | ||
<!-- Please include the steps to reproduce the behavior. E.g., | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error --> | ||
|
||
### Additional context | ||
<!-- Add any other context or screenshots about the bug here. --> |
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 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: enhancement | ||
assignees: '' | ||
|
||
--- | ||
### Background | ||
<!-- Please include a clear and concise description of *the problem* this feature would solve. --> | ||
|
||
### Describe the solution you'd like | ||
<!-- A clear and concise description of what you want to happen. --> | ||
|
||
### Alternatives | ||
<!-- A clear and concise description of any alternative solutions or features you've considered. --> | ||
|
||
### Additional context | ||
<!-- Add any other context or screenshots about the feature request here. --> |
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,11 @@ | ||
<!-- | ||
If this is a pull request for a new release, please use the release template: | ||
{{ cookiecutter.public_url }}/compare/main...develop?template=release.md | ||
If this PR does not include changes that should be reflected in CHANGELOG.md, | ||
please indicate so by affixing the `bumpless` label to this PR. | ||
NOTE: Pull requests should only be opened for merges to protected branches (required) and any | ||
changes which you'd like reviewed. Do not open a pull request to update a feature or personal | ||
branch -- simply merge with `git`. | ||
--> |
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,18 @@ | ||
name: Changelog updated? | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- labeled | ||
- unlabeled | ||
- synchronize | ||
branches: | ||
- main | ||
- dev | ||
|
||
jobs: | ||
call-changelog-check-workflow: | ||
uses: ASFHyP3/actions/.github/workflows/reusable-changelog-check.yml@v0.8.3 | ||
secrets: | ||
USER_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,37 @@ | ||
name: Distribute to PyPI | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
distribute: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
SDIST_VERSION: ${{ steps.build.outputs.version }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade setuptools build "setuptools-scm[toml]" | ||
- name: Build distribuion | ||
id: build | ||
run: | | ||
git fetch origin +refs/tags/*:refs/tags/* | ||
export SDIST_VERSION=$(python -m setuptools_scm) | ||
echo "::set-output name=version::${SDIST_VERSION}" | ||
python -m build | ||
- name: upload to PyPI.org | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_TOKEN }} |
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,15 @@ | ||
name: Is PR labeled? | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- labeled | ||
- unlabeled | ||
- synchronize | ||
branches: | ||
- main | ||
|
||
jobs: | ||
call-labeled-pr-check-workflow: | ||
uses: ASFHyP3/actions/.github/workflows/reusable-labeled-pr-check.yml@v0.8.3 |
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,16 @@ | ||
name: Create Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
call-release-workflow: | ||
uses: ASFHyP3/actions/.github/workflows/reusable-release.yml@v0.8.3 | ||
with: | ||
release_prefix: tile-stitcher | ||
develop_branch: dev | ||
sync_pr_label: team-bot | ||
secrets: | ||
USER_TOKEN: ${{ secrets.OPERA_PST_GITHUB_TOKEN }} |
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,15 @@ | ||
name: Static analysis | ||
|
||
on: push | ||
|
||
jobs: | ||
call-flake8-workflow: | ||
uses: ASFHyP3/actions/.github/workflows/reusable-flake8.yml@v0.8.3 | ||
with: | ||
local_package_names: tile_stitcher | ||
|
||
call-secrets-analysis-workflow: | ||
uses: ASFHyP3/actions/.github/workflows/reusable-secrets-analysis.yml@v0.8.3 | ||
|
||
call-ruff-workflow: | ||
uses: ASFHyP3/actions/.github/workflows/reusable-ruff.yml@v0.9.0 |
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,35 @@ | ||
name: Test and Tag | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
pull_request: | ||
branches: | ||
- main | ||
- dev | ||
|
||
jobs: | ||
pytest: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10", "3.11"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: mamba-org/provision-with-micromamba@main | ||
with: | ||
environment-name: tile-stitcher | ||
environment-file: environment.yml | ||
extra-specs: | | ||
python=${{ matrix.python-version }} | ||
- name: Pytest in conda environment | ||
shell: bash -l {0} | ||
run: | | ||
python -m pip install . | ||
pytest . tests |
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,3 @@ | ||
CHANGELOG.md | ||
.*.ipynb$ | ||
.*README.md |
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,16 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/) | ||
and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [0.0.1] | ||
* First release of `tile_stitcher` with following datasets (See readme for links): | ||
- ESA 10m worldcover 2020 and 2021; | ||
- Pekel 30m water occurence 2021; | ||
- S1 coherence from 2020; | ||
- Hansen annual mosaics 2000, 2013 - present | ||
- Cop 100m Landcover 2015-2019 | ||
* Includes workflows for static analysis, release to PyPI, and integration testing. |
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.