Skip to content

Commit

Permalink
Merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
BENR0 committed May 13, 2022
2 parents 6ab876d + c181288 commit dbe2173
Show file tree
Hide file tree
Showing 212 changed files with 15,055 additions and 5,253 deletions.
4 changes: 3 additions & 1 deletion .bandit
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
skips: ["B506"]
[bandit]
skips: B506
exclude: satpy/tests
2 changes: 1 addition & 1 deletion .git_archival.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ref-names: $Format:%D$
ref-names: $Format:%D$
59 changes: 23 additions & 36 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ concurrency:

on: [push, pull_request]

env:
CACHE_NUMBER: 0

jobs:
lint:
name: lint and style checks
Expand All @@ -29,37 +32,6 @@ jobs:
run: |
flake8 satpy/
website:
name: build website
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Conda Environment
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
python-version: "3.8"
environment-file: continuous_integration/environment.yaml
activate-environment: test-environment

- name: Install Satpy
shell: bash -l {0}
run: |
pip install sphinx sphinx_rtd_theme sphinxcontrib-apidoc; \
pip install --no-deps -e .
- name: Run Sphinx Build
shell: bash -l {0}
run: |
cd doc; \
make html SPHINXOPTS="-W"
test:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
Expand All @@ -68,10 +40,10 @@ jobs:
fail-fast: true
matrix:
os: ["windows-latest", "ubuntu-latest", "macos-latest"]
python-version: ["3.7", "3.8", "3.9"]
python-version: ["3.8", "3.9", "3.10"]
experimental: [false]
include:
- python-version: "3.8"
- python-version: "3.9"
os: "ubuntu-latest"
experimental: true

Expand All @@ -92,9 +64,25 @@ jobs:
miniforge-version: latest
use-mamba: true
python-version: ${{ matrix.python-version }}
environment-file: continuous_integration/environment.yaml
activate-environment: test-environment

- name: Set cache environment variables
shell: bash -l {0}
run: |
echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
CONDA_PREFIX=$(python -c "import sys; print(sys.prefix)")
echo "CONDA_PREFIX=$CONDA_PREFIX" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
path: ${{ env.CONDA_PREFIX }}
key: ${{ matrix.os }}-${{matrix.python-version}}-conda-${{ hashFiles('continuous_integration/environment.yaml') }}-${{ env.DATE }}-${{matrix.experimental}}-${{ env.CACHE_NUMBER }}
id: cache

- name: Update environment
run: mamba env update -n test-environment -f continuous_integration/environment.yaml
if: steps.cache.outputs.cache-hit != 'true'

- name: Install unstable dependencies
if: matrix.experimental == true
shell: bash -l {0}
Expand Down Expand Up @@ -148,7 +136,7 @@ jobs:
coverage xml
- name: Upload behaviour test coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v2
with:
flags: behaviourtests
file: ./coverage.xml
Expand All @@ -162,4 +150,3 @@ jobs:
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true

2 changes: 1 addition & 1 deletion .github/workflows/deploy-sdist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
uses: pypa/gh-action-pypi-publish@v1.4.1
with:
user: __token__
password: ${{ secrets.pypi_password }}
password: ${{ secrets.pypi_password }}
17 changes: 12 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
exclude: '^$'
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
additional_dependencies: [flake8-docstrings, flake8-debugger, flake8-bugbear, mccabe]
args: [--max-complexity, "10"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args: [--unsafe]
- repo: https://github.com/PyCQA/bandit
rev: '1.7.0' # Update me!
rev: '1.7.4' # Update me!
hooks:
- id: bandit
args: [-x, satpy/tests, -c, .bandit]
args: [--ini, .bandit]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.910-1' # Use the sha / tag you want to point at
rev: 'v0.950' # Use the sha / tag you want to point at
hooks:
- id: mypy
additional_dependencies:
Expand Down
90 changes: 0 additions & 90 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ The following people have made contributions to this project:
- [Esben S. Nielsen (storpipfugl)](https://github.com/storpipfugl)
- [Tom Parker (tparker-usgs)](https://github.com/tparker-usgs)
- [Christian Peters (peters77)](https://github.com/peters77)
- [Pepe Phillips (pepephillips)](https://github.com/pepephillips)
- [Ghislain Picard (ghislainp)](https://github.com/ghislainp)
- [Simon R. Proud (simonrp84)](https://github.com/simonrp84)
- [Lars Ørum Rasmussen (loerum)](https://github.com/loerum)
Expand All @@ -76,4 +77,4 @@ The following people have made contributions to this project:
- [oananicola (oananicola)](https://github.com/oananicola)
- [praerien (praerien)](https://github.com/praerien)
- [Xin Zhang (zxdawn)](https://github.com/zxdawn)
- [Yufei Zhu (yufeizhu600)](https://github.com/yufeizhu600)
- [Yufei Zhu (yufeizhu600)](https://github.com/yufeizhu600)
Loading

0 comments on commit dbe2173

Please sign in to comment.