-
Notifications
You must be signed in to change notification settings - Fork 2
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 #1 from djhoese/overhaul
Overhaul example with more information and CI
- Loading branch information
Showing
9 changed files
with
915 additions
and
69 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,46 @@ | ||
name: CI | ||
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency | ||
# https://docs.github.com/en/developers/webhooks-and-events/events/github-event-types#pullrequestevent | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.type }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
# Every Saturday at midnight UTC | ||
- cron: '0 0 * * 6' | ||
|
||
|
||
jobs: | ||
satpy_compat: | ||
name: Check Compatibility | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies | ||
# TODO: Remove pyorbital after next Satpy 0.37.0 is released | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flake8 flake8-docstrings flake8-debugger flake8-bugbear pyorbital | ||
- name: Install Plugin | ||
run: | | ||
pip install -e . | ||
- name: Run linting | ||
run: | | ||
flake8 satpy_cpe/ | ||
- name: Check Satpy Composite Detection | ||
run: | | ||
cd /tmp | ||
python -c "from satpy.composites.config_loader import load_compositor_configs_for_sensors as load_comps; assert any('my_ndvi' == data_id['name'] for data_id in load_comps({'viirs'})[0]['viirs'].keys())" |
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,68 @@ | ||
### PYTHON IGNORES ### | ||
*.py[cod] | ||
|
||
# Packages | ||
*.egg | ||
*.egg-info | ||
dist | ||
build | ||
doc/build | ||
eggs | ||
*.eggs | ||
parts | ||
bin | ||
var | ||
sdist | ||
develop-eggs | ||
.installed.cfg | ||
lib | ||
lib64 | ||
|
||
# Installer logs | ||
pip-log.txt | ||
|
||
# Unit test / coverage reports | ||
.coverage | ||
.tox | ||
nosetests.xml | ||
htmlcov | ||
|
||
#Translations | ||
*.mo | ||
|
||
#Sphinx | ||
doc/source/_build/* | ||
|
||
#Mr Developer | ||
.mr.developer.cfg | ||
|
||
### C IGNORES ### | ||
# Object files | ||
*.o | ||
|
||
# Libraries | ||
*.lib | ||
*.a | ||
|
||
# Shared objects (inc. Windows DLLs) | ||
*.dll | ||
*.so | ||
*.so.* | ||
*.dylib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
|
||
# Others | ||
*~ | ||
# PyCharm Settings | ||
.idea | ||
|
||
# VSCode Settings | ||
.vscode | ||
|
||
# vi / vim swp files | ||
*.swp | ||
.DS_STORE |
Oops, something went wrong.