-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release version 1.4.2, Merge pull request #672 from sentinel-hub/develop
Release version 1.4.2
- Loading branch information
Showing
142 changed files
with
2,504 additions
and
2,640 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 |
---|---|---|
|
@@ -6,9 +6,12 @@ on: | |
branches: | ||
- "master" | ||
- "develop" | ||
schedule: | ||
# Schedule events are triggered by whoever last changed the cron schedule | ||
- cron: "5 0 * * *" | ||
workflow_call: | ||
|
||
concurrency: | ||
# This will cancel outdated runs on the same pull-request, but not runs for other triggers | ||
group: ${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
# The only way to simulate if-else statement | ||
|
@@ -19,46 +22,45 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ env.CHECKOUT_BRANCH }} | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.8" | ||
architecture: x64 | ||
|
||
- name: Prepare pre-commit validators | ||
run: | | ||
pip install pre-commit | ||
|
||
- name: Check code compliance with pre-commit validators | ||
run: pre-commit run --all-files | ||
- uses: pre-commit/[email protected] | ||
with: | ||
extra_args: --all-files --verbose | ||
|
||
check-code-pylint-and-mypy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ env.CHECKOUT_BRANCH }} | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.8" | ||
architecture: x64 | ||
# cache: pip # uncomment when all requirements are in `pyproject.toml` | ||
# caching the entire environment is faster when cache exists but slower for cache creation | ||
|
||
- name: Install packages | ||
run: | | ||
pip install -r requirements-dev.txt --upgrade | ||
pip install -r requirements-dev.txt --upgrade --upgrade-strategy eager | ||
python install_all.py | ||
pip install -r ml_tools/requirements-tdigest.txt | ||
- name: Run pylint | ||
run: make pylint | ||
|
||
- name: Run mypy | ||
if: success() || failure() | ||
run: | | ||
mypy \ | ||
core/eolearn/core \ | ||
|
@@ -77,28 +79,27 @@ jobs: | |
python-version: | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
include: | ||
# A flag marks whether full or partial tests should be run | ||
# We don't run integration tests on pull requests from outside repos, because they don't have secrets | ||
- python-version: "3.8" | ||
full_test_suite: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ env.CHECKOUT_BRANCH }} | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
# cache: pip # uncomment when all requirements are in `pyproject.toml` | ||
|
||
- name: Install packages | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential libgdal-dev graphviz proj-bin gcc libproj-dev libspatialindex-dev | ||
pip install -r requirements-dev.txt --upgrade | ||
pip install -r requirements-dev.txt --upgrade --upgrade-strategy eager | ||
python install_all.py -e | ||
- name: Run full tests and code coverage | ||
|
@@ -111,8 +112,7 @@ jobs: | |
- name: Run reduced tests | ||
if: ${{ !matrix.full_test_suite }} | ||
run: | | ||
pytest -m "not sh_integration" | ||
run: pytest -m "not sh_integration" | ||
|
||
- name: Upload code coverage | ||
if: ${{ matrix.full_test_suite && github.event_name == 'push' }} | ||
|
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 @@ | ||
name: scheduled build caller | ||
|
||
on: | ||
schedule: | ||
# Schedule events are triggered by whoever last changed the cron schedule | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
call-workflow: | ||
uses: sentinel-hub/eo-learn/.github/workflows/ci_action.yml@develop | ||
secrets: inherit |
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
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,4 +1,5 @@ | ||
include requirements*.txt | ||
|
||
include README.md | ||
include CREDITS.md | ||
include LICENSE |
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.