-
Notifications
You must be signed in to change notification settings - Fork 93
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 #37 from sentinel-hub/feat/package-updates
Feat/package updates
- Loading branch information
Showing
25 changed files
with
515 additions
and
279 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,42 @@ | ||
--- | ||
name: 'Bug report' | ||
about: Help us improve | ||
title: '[BUG]' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
|
||
A clear and concise description of what the bug is. | ||
|
||
NOTE: Remove any confidential information, such as Sentinel Hub credentials! | ||
|
||
**To Reproduce** | ||
|
||
Steps to reproduce the behavior: | ||
|
||
1. | ||
2. | ||
3. | ||
|
||
**Expected behavior** | ||
|
||
A clear and concise description of what you expected to happen. | ||
|
||
**Environment** | ||
|
||
Details of the python environment | ||
|
||
**Stack trace or screenshots** | ||
|
||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
|
||
- OS: [e.g. iOS] | ||
- Browser [e.g. chrome, safari] | ||
- Version [e.g. 22] | ||
|
||
**Additional context** |
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,24 @@ | ||
--- | ||
name: 'Feature request' | ||
about: What feature is missing? | ||
title: '[FEAT]' | ||
labels: enhancement | ||
assignees: '' | ||
|
||
--- | ||
|
||
**What is the problem? Please describe.** | ||
|
||
A clear and concise description of what the problem is. | ||
|
||
**Here's the solution** | ||
|
||
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,22 @@ | ||
--- | ||
name: 'Help/Support' | ||
about: 'Need help?' | ||
title: '[HELP]' | ||
labels: help wanted, question | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Resources** | ||
|
||
Before opening an issue for help/support, make sure you have checked [existing issues](https://github.com/sentinel-hub/sentinel2-cloud-detector/issues) and the Sentinel Hub [forum](https://forum.sentinel-hub.com/). | ||
|
||
**Question** | ||
|
||
Formulate your question in a clear and structured way, providing context and links to the resources raising issues. | ||
|
||
NOTE: Remove any confidential information, such as Sentinel Hub credentials! | ||
|
||
**Additional context** | ||
|
||
Add any information that would help us supporting you. |
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,88 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
|
||
check-code-black: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out current branch | ||
if: github.event_name == 'push' | ||
uses: actions/checkout@v2 | ||
|
||
- name: Check code compliance with black | ||
if: github.event_name == 'push' | ||
run: | | ||
pip install black[jupyter] | ||
black . --check --diff | ||
check-code-isort: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out current branch | ||
if: github.event_name == 'push' | ||
uses: actions/checkout@v2 | ||
|
||
- name: Check code compliance with isort | ||
if: github.event_name == 'push' | ||
run: | | ||
pip install isort | ||
isort **/*.py --check --diff | ||
test-on-github: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: | ||
- '3.7' | ||
- '3.8' | ||
- '3.9' | ||
- '3.10' | ||
steps: | ||
- name: Check out current branch in case of a push event | ||
if: github.event_name == 'push' | ||
uses: actions/checkout@v2 | ||
|
||
- name: Check out develop branch in case of a scheduled event | ||
if: github.event_name == 'schedule' | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: develop | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
|
||
- name: Install packages | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential libopenjp2-7 | ||
pip install -e .[DEV] | ||
- name: Run full tests and code coverage | ||
if: matrix.python-version == '3.9' | ||
run: | | ||
sentinelhub.config \ | ||
--sh_client_id "${{ secrets.SH_CLIENT_ID }}" \ | ||
--sh_client_secret "${{ secrets.SH_CLIENT_SECRET }}" | ||
pytest --cov --cov-report=term --cov-report=xml | ||
- name: Run pylint and reduced tests | ||
if: matrix.python-version != '3.9' | ||
run: | | ||
pylint s2cloudless | ||
pytest -m "not sh_integration" | ||
- name: Upload code coverage | ||
if: matrix.python-version == '3.9' | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
files: coverage.xml | ||
fail_ci_if_error: true | ||
verbose: false |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.