-
Notifications
You must be signed in to change notification settings - Fork 39
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 #130 from ajdawson/develop-2.0
Work towards a 2.0 release
- Loading branch information
Showing
61 changed files
with
355 additions
and
5,066 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 @@ | ||
# See https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/keeping-your-actions-up-to-date-with-dependabot | ||
|
||
version: 2 | ||
updates: | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
labels: | ||
- "bot" |
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,50 @@ | ||
|
||
name: Documentation | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
build-docs: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Micromamba | ||
uses: mamba-org/setup-micromamba@v2 | ||
with: | ||
environment-name: TEST | ||
init-shell: bash | ||
create-args: >- | ||
python=3 pip pyspharm iris xarray sphinx sphinx-issues --channel conda-forge | ||
- name: Install windspharm | ||
shell: bash -l {0} | ||
run: | | ||
python -m pip install -e . --no-deps --force-reinstall | ||
- name: Build documentation | ||
shell: bash -l {0} | ||
run: | | ||
set -e | ||
micromamba activate TEST | ||
pushd docs | ||
make clean html linkcheck | ||
popd | ||
- name: Deploy | ||
if: success() && github.event_name == 'release' | ||
uses: peaceiris/actions-gh-pages@v4 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docs/_build/html |
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,65 @@ | ||
name: Publish to PyPI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
release: | ||
types: | ||
- published | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
build_wheels: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Get tags | ||
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
|
||
- name: Setup Micromamba Python | ||
uses: mamba-org/setup-micromamba@v2 | ||
with: | ||
environment-name: PYPI | ||
init-shell: bash | ||
create-args: >- | ||
python | ||
pip | ||
pytest | ||
numpy | ||
pyspharm | ||
--channel conda-forge | ||
- name: Install build tools | ||
shell: bash -l {0} | ||
run: | | ||
python -m pip install --upgrade build check-manifest twine | ||
- name: Build binary wheel | ||
shell: bash -l {0} | ||
run: | | ||
python -m build --sdist --wheel . --outdir dist | ||
- name: Check manifest | ||
shell: bash -l {0} | ||
run: | | ||
ls dist | ||
check-manifest --verbose | ||
- name: Test wheels | ||
shell: bash -l {0} | ||
run: | | ||
cd dist && python -m pip install *.whl | ||
python -m twine check * | ||
- name: Publish a Python distribution to PyPI | ||
if: success() && github.event_name == 'release' | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_PASSWORD }} |
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,37 @@ | ||
name: Standard Tests | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
run: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
python-version: ["3.10", "3.11", "3.12", "3.13"] | ||
os: [ubuntu-latest, macos-latest] | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Micromamba Python ${{ matrix.python-version }} | ||
uses: mamba-org/setup-micromamba@v2 | ||
with: | ||
environment-name: TEST | ||
init-shell: bash | ||
create-args: >- | ||
python=${{ matrix.python-version }} pip pytest numpy pyspharm --channel conda-forge | ||
- name: Install windspharm | ||
shell: bash -l {0} | ||
run: | | ||
python -m pip install -e . --no-deps --force-reinstall | ||
- name: Tests | ||
shell: bash -l {0} | ||
run: | | ||
python -m pytest -vrsx windspharm/tests |
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,36 @@ | ||
name: Full Tests | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
run: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
python-version: ["3.10", "3.11", "3.12", "3.13"] | ||
os: [ubuntu-latest, macos-latest] | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Micromamba Python ${{ matrix.python-version }} | ||
uses: mamba-org/setup-micromamba@v2 | ||
with: | ||
environment-name: TEST | ||
init-shell: bash | ||
create-args: >- | ||
python=${{ matrix.python-version }} pip pytest numpy pyspharm iris xarray --channel conda-forge | ||
- name: Install windspharm | ||
shell: bash -l {0} | ||
run: | | ||
python -m pip install -e . --no-deps --force-reinstall | ||
- name: Tests | ||
shell: bash -l {0} | ||
run: | | ||
python -m pytest -vrsx windspharm/tests |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
repos: | ||
- repo: https://github.com/tox-dev/pyproject-fmt | ||
rev: v2.5.0 | ||
hooks: | ||
- id: pyproject-fmt | ||
|
||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.7.3 | ||
hooks: | ||
- id: ruff |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,15 @@ | ||
includ pyproject.toml | ||
include README.md | ||
include license.txt | ||
include versioneer.py | ||
include lib/windspharm/_version.py | ||
|
||
graft windspharm | ||
|
||
recursive-include examples *.py | ||
recursive-include windspharm *.nc | ||
|
||
prune .github | ||
prune *.egg-info | ||
prune docs | ||
|
||
exclude *.yaml | ||
exclude windspharm/_version.py |
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.