Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/ci-hpc-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
build:
python: 3.11
parallel: 1
pytest_cmd: |
python -m pytest --cov=./ --cov-report=xml
python -m coverage report
188 changes: 0 additions & 188 deletions .github/workflows/build_wheels.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: cd

on:
push:
tags:
- '**'

jobs:
pypi_binwheels:
uses: ecmwf/reusable-workflows/.github/workflows/cd-pypi-binwheel.yml@v2
secrets: inherit
with:
platforms: "['ubuntu-latest','macos-latest','windows-latest']"
pyversions: "['311','312','313']"
env_vars: |
{
"USE_RUST": "1",
"SETUPTOOLS_RUST_CARGO_PROFILE": "release"
}

pypi_purepython:
needs: pypi_binwheels
uses: ecmwf/reusable-workflows/.github/workflows/cd-pypi.yml@v2
secrets: inherit
with:
env_vars: |
{
"USE_RUST": "0",
"SETUPTOOLS_RUST_CARGO_PROFILE": "release"
}
2 changes: 0 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
types: [opened, synchronize, reopened, closed]
push:
branches:
- "develop"
- "main"
tags:
- "**"
Expand Down Expand Up @@ -55,7 +54,6 @@ jobs:
publish:
if: >-
${{ github.event_name == 'push' && (
github.ref_name == 'develop' ||
github.ref_name == 'main' ||
github.ref_type == 'tag'
) }}
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/downstream-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: ci

on:
# Trigger the workflow on push to master or develop, except tag creation
push:
branches:
- "main"
tags-ignore:
- "**"

# Trigger the workflow on pull request
pull_request: ~

# Trigger the workflow manually
workflow_dispatch: ~

# Trigger after public PR approved for CI
pull_request_target:
types: [labeled]

jobs:
# Run CI including downstream packages on self-hosted runners
downstream-ci:
name: downstream-ci
if: ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }}
uses: ecmwf/downstream-ci/.github/workflows/downstream-ci.yml@feat/qubed
with:
qubed: ecmwf/qubed@${{ github.event.pull_request.head.sha || github.sha }}
# codecov_upload: true
python_qa: true
secrets: inherit

downstream-ci-hpc:
name: downstream-ci-hpc
if: ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }}
uses: ecmwf/downstream-ci/.github/workflows/downstream-ci-hpc.yml@feat/qubed
with:
qubed: ecmwf/qubed@${{ github.event.pull_request.head.sha || github.sha }}
secrets: inherit
10 changes: 10 additions & 0 deletions .github/workflows/label-public-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Manage labels of pull requests that originate from forks
name: label-public-pr

on:
pull_request_target:
types: [opened, synchronize]

jobs:
label:
uses: ecmwf-actions/reusable-workflows/.github/workflows/label-pr.yml@v2
31 changes: 31 additions & 0 deletions .github/workflows/test-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

name: test-cd

on:
pull_request:
branches: [ "main"]

jobs:
pypi_binwheels:
uses: ecmwf/reusable-workflows/.github/workflows/cd-pypi-binwheel.yml@v2
secrets: inherit
with:
platforms: "['ubuntu-latest','macos-latest']"
pyversions: "['311','312']"
testpypi: true
env_vars: |
{
"USE_RUST": "1",
"SETUPTOOLS_RUST_CARGO_PROFILE": "release"
}
pypi_purepython:
needs: pypi_binwheels
uses: ecmwf/reusable-workflows/.github/workflows/cd-pypi.yml@v2
secrets: inherit
with:
testpypi: true
env_vars: |
{
"USE_RUST": "0",
"SETUPTOOLS_RUST_CARGO_PROFILE": "release"
}
52 changes: 0 additions & 52 deletions .github/workflows/test.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/test_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- main
- develop
pull_request:
workflow_dispatch:

Expand Down
Loading
Loading