Skip to content

Commit

Permalink
Merge pull request #1 from djhoese/overhaul
Browse files Browse the repository at this point in the history
Overhaul example with more information and CI
  • Loading branch information
mraspaud authored Jul 26, 2022
2 parents 9927890 + ffbc629 commit 105a87f
Show file tree
Hide file tree
Showing 9 changed files with 915 additions and 69 deletions.
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

0 comments on commit 105a87f

Please sign in to comment.