Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overhaul example with more information and CI #1

Merged
merged 14 commits into from
Jul 26, 2022
Merged
46 changes: 46 additions & 0 deletions .github/workflows/ci.yaml
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())"
68 changes: 68 additions & 0 deletions .gitignore
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
Loading