Skip to content

Commit

Permalink
Merge pull request #388 from ecmwf/develop
Browse files Browse the repository at this point in the history
Merge develop into main for release 0.8.0
  • Loading branch information
sandorkertesz authored May 28, 2024
2 parents 2d7634a + a322ce6 commit d16ac80
Show file tree
Hide file tree
Showing 215 changed files with 3,322 additions and 1,375 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/cd-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: cd

on:
push:
tags:
- '**'

jobs:
pypi:
uses: ecmwf-actions/reusable-workflows/.github/workflows/cd-pypi.yml@v2
secrets: inherit
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
with:
earthkit-data: ecmwf/earthkit-data@${{ github.event.pull_request.head.sha || github.sha }}
codecov_upload: true
python_qa: true
secrets: inherit


Expand Down
39 changes: 2 additions & 37 deletions .github/workflows/ci_other.yml → .github/workflows/legacy-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: legacy-ci

on:
push:
Expand Down Expand Up @@ -65,7 +65,6 @@ jobs:
documentation:
needs: [unit-tests-no-eccodes]
if: ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }}
runs-on: ubuntu-latest
defaults:
Expand All @@ -79,7 +78,7 @@ jobs:
- name: Install Conda environment with Micromamba
uses: mamba-org/provision-with-micromamba@v12
with:
environment-file: environment.yml
environment-file: tests/environment-unit-tests.yml
environment-name: DEVELOP
channels: conda-forge
cache-env: true
Expand All @@ -92,37 +91,3 @@ jobs:
- name: Build documentation
run: |
make docs-build
distribution:
needs: [documentation]
if: ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- name: Build distributions
run: |
$CONDA/bin/python -m pip install build
$CONDA/bin/python -m build
- name: Publish a Python distribution to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

notify:
if: always() && ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }}
needs:
- pre-commit
- unit-tests-no-eccodes
- documentation
runs-on: ubuntu-latest
steps:
- name: Trigger Teams notification
uses: ecmwf-actions/notify-teams@v1
with:
incoming_webhook: ${{ secrets.MS_TEAMS_INCOMING_WEBHOOK }}
needs_context: ${{ toJSON(needs) }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# setuptools-scm
version.py
_version.py

# Sphinx automatic generation of API
docs/_api/
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.9.1
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/keewis/blackdoc
Expand Down
2 changes: 2 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ build:
python:
install:
- requirements: docs/requirements.txt
- method: pip
path: .
5 changes: 2 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,13 @@
autodoc_typehints = "none"

# autoapi configuration
autoapi_dirs = ["../earthkit/data"]
autoapi_ignore = ["*/version.py", "sphinxext/*"]
autoapi_dirs = ["../src/earthkit/data"]
autoapi_ignore = ["*/_version.py", "sphinxext/*"]
autoapi_options = [
"members",
"undoc-members",
"show-inheritance",
"show-module-summary",
"imported-members",
"inherited-members",
]
autoapi_root = "_api"
Expand Down
Loading

0 comments on commit d16ac80

Please sign in to comment.