Skip to content

Commit

Permalink
Format YAML files.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-rapp committed Jun 22, 2024
1 parent cb7008d commit dc3631b
Show file tree
Hide file tree
Showing 14 changed files with 80 additions and 41 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/merge_bugfix.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
name: Merge bugfix into feature branch
on:
push:
branches:
- 'bugfix'
- bugfix
jobs:
merge_bugfix:
name: Merge bugfix into feature branch
Expand Down Expand Up @@ -30,11 +31,11 @@ jobs:
uses: peter-evans/create-pull-request@v6
with:
token: ${{ steps.app-token.outputs.token }}
commit-message: "[Bot] Merge bugfix into feature branch."
commit-message: '[Bot] Merge bugfix into feature branch.'
branch: merge-bugfix
title: "Merge bugfix into feature branch"
title: Merge bugfix into feature branch
labels: bot
body: "Merge branch \"bugfix\" into \"feature\"."
body: Merge branch "bugfix" into "feature".
- name: Enable auto-merge
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/merge_feature.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
name: Merge feature into main branch
on:
push:
branches:
- 'feature'
- feature
jobs:
merge_feature:
name: Merge feature into main branch
Expand Down Expand Up @@ -30,11 +31,11 @@ jobs:
uses: peter-evans/create-pull-request@v6
with:
token: ${{ steps.app-token.outputs.token }}
commit-message: "[Bot] Merge feature into main branch."
commit-message: '[Bot] Merge feature into main branch.'
branch: merge-feature
title: "Merge feature into main branch"
title: Merge feature into main branch
labels: bot
body: "Merge branch \"feature\" into \"main\"."
body: Merge branch "feature" into "main".
- name: Enable auto-merge
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/merge_release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
name: Merge into upstream branches
on:
release:
types: [ published ]
types:
- published
jobs:
merge_release:
name: Merge into upstream branches
Expand Down Expand Up @@ -73,7 +75,7 @@ jobs:
git push origin bugfix
- name: Update patch version
if: ${{ github.event.release.target_commitish == 'bugfix' }}
run: |
run: |-
git checkout bugfix
./build increment_patch_version
git add VERSION
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
name: Publish release packages
on:
release:
types: [ published ]
types:
- published
jobs:
publish_packages:
name: Publish wheel packages
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/release_development.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
name: Publish development packages
on:
push:
branches:
- 'main'
- main
paths:
- 'cpp/**/include/**'
- 'cpp/**/src/**'
- cpp/**/include/**
- cpp/**/src/**
- '**/*.pxd'
- '**/*.pyx'
- 'python/**/mlrl/**'
- python/**/mlrl/**
jobs:
update_development_version:
name: Update development version
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/template_publish.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Publish wheel packages
on:
workflow_call:
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/template_publish_non_native.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Publish non-native platform wheels
on:
workflow_call:
Expand All @@ -22,7 +23,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
os:
- ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -37,17 +39,18 @@ jobs:
- name: Build package
uses: pypa/[email protected]
env:
CIBW_BEFORE_BUILD_LINUX: ./build --clean && SUBPROJECTS=${{ inputs.subproject }} TEST_SUPPORT=disabled GPU_SUPPORT=disabled ./build install
CIBW_BEFORE_BUILD_LINUX: ./build --clean && SUBPROJECTS=${{ inputs.subproject }} TEST_SUPPORT=disabled GPU_SUPPORT=disabled
./build install
CIBW_BUILD_FRONTEND: build
CIBW_ARCHS_LINUX: aarch64
CIBW_SKIP: 'pp* *musllinux*'
CIBW_SKIP: pp* *musllinux*
with:
package-dir: python/subprojects/${{ inputs.subproject }}/
- name: Setup Python
if: ${{ inputs.pypi_repository }}
uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: 3.x
- name: Upload wheels to PyPI
if: ${{ inputs.pypi_repository }}
env:
Expand All @@ -62,5 +65,5 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: wheels-${{ inputs.subproject }}-${{ runner.os }}-aarch64
path: 'wheelhouse/*.whl'
path: wheelhouse/*.whl
if-no-files-found: error
22 changes: 15 additions & 7 deletions .github/workflows/template_publish_platform.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Publish platform wheels
on:
workflow_call:
Expand All @@ -22,7 +23,10 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -41,19 +45,23 @@ jobs:
- name: Build package
uses: pypa/[email protected]
env:
CIBW_BEFORE_BUILD_LINUX: ./build --clean && SUBPROJECTS=${{ inputs.subproject }} TEST_SUPPORT=disabled GPU_SUPPORT=disabled ./build install
CIBW_BEFORE_BUILD_MACOS: rm -rf venv && ./build --clean && SUBPROJECTS=${{ inputs.subproject }} TEST_SUPPORT=disabled GPU_SUPPORT=disabled CPLUS_INCLUDE_PATH=/opt/homebrew/opt/libomp/include/ LIBRARY_PATH=/opt/homebrew/opt/libomp/lib/ ./build install
CIBW_BEFORE_BUILD_WINDOWS: .\build.bat --clean && set SUBPROJECTS=${{ inputs.subproject }} && set TEST_SUPPORT=disabled && set GPU_SUPPORT=disabled && .\build.bat install
CIBW_BEFORE_BUILD_LINUX: ./build --clean && SUBPROJECTS=${{ inputs.subproject }} TEST_SUPPORT=disabled GPU_SUPPORT=disabled
./build install
CIBW_BEFORE_BUILD_MACOS: rm -rf venv && ./build --clean && SUBPROJECTS=${{ inputs.subproject }} TEST_SUPPORT=disabled
GPU_SUPPORT=disabled CPLUS_INCLUDE_PATH=/opt/homebrew/opt/libomp/include/ LIBRARY_PATH=/opt/homebrew/opt/libomp/lib/
./build install
CIBW_BEFORE_BUILD_WINDOWS: .\build.bat --clean && set SUBPROJECTS=${{ inputs.subproject }} && set TEST_SUPPORT=disabled
&& set GPU_SUPPORT=disabled && .\build.bat install
CIBW_BUILD_FRONTEND: build
CIBW_ARCHS: auto64
CIBW_SKIP: 'pp* *musllinux*'
CIBW_SKIP: pp* *musllinux*
with:
package-dir: python/subprojects/${{ inputs.subproject }}/
- name: Setup Python
if: ${{ inputs.pypi_repository }}
uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: 3.x
- name: Upload wheels to PyPI
if: ${{ inputs.pypi_repository }}
env:
Expand All @@ -68,5 +76,5 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: wheels-${{ inputs.subproject }}-${{ runner.os }}-x86_64
path: 'wheelhouse/*.whl'
path: wheelhouse/*.whl
if-no-files-found: error
8 changes: 5 additions & 3 deletions .github/workflows/template_publish_pure.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Publish pure wheels
on:
workflow_call:
Expand All @@ -19,7 +20,8 @@ on:
jobs:
publish_pure_wheels:
name: Publish pure wheels
runs-on: [ubuntu-latest]
runs-on:
- ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -35,7 +37,7 @@ jobs:
if: ${{ inputs.pypi_repository }}
uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: 3.x
- name: Upload wheels to PyPI
if: ${{ inputs.pypi_repository }}
env:
Expand All @@ -50,5 +52,5 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: wheels-${{ inputs.subproject }}-any
path: 'wheelhouse/*.whl'
path: wheelhouse/*.whl
if-no-files-found: error
17 changes: 11 additions & 6 deletions .github/workflows/test_build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
---
name: Test build
on:
pull_request:
types: [opened, reopened, synchronize]
types:
- opened
- reopened
- synchronize
jobs:
changes:
name: Detect changes
Expand Down Expand Up @@ -94,7 +98,7 @@ jobs:
if: ${{ needs.changes.outputs.cpp_tests == 'true' }} && (success() || failure())
uses: EnricoMi/publish-unit-test-result-action@v2
with:
check_name: "C++ Test Results"
check_name: C++ Test Results
files: |
cpp/build/meson-logs/testlog.junit.xml
- name: Test Python code
Expand All @@ -104,7 +108,7 @@ jobs:
if: ${{ needs.changes.outputs.python_tests == 'true' }} && (success() || failure())
uses: EnricoMi/publish-unit-test-result-action@v2
with:
check_name: "Python Test Results"
check_name: Python Test Results
files: |
python/build/test-results/*.xml
macos_build:
Expand All @@ -131,14 +135,15 @@ jobs:
with:
key: ${{ runner.os }}-test-build-ccache
- name: Compile via Clang
run: TEST_SUPPORT=disabled CPLUS_INCLUDE_PATH=/opt/homebrew/opt/libomp/include/:/opt/homebrew/opt/opencl-clhpp-headers/include/ LIBRARY_PATH=/opt/homebrew/opt/libomp/lib/ ./build compile
run: TEST_SUPPORT=disabled CPLUS_INCLUDE_PATH=/opt/homebrew/opt/libomp/include/:/opt/homebrew/opt/opencl-clhpp-headers/include/
LIBRARY_PATH=/opt/homebrew/opt/libomp/lib/ ./build compile
windows_build:
needs: changes
if: ${{ needs.changes.outputs.cpp == 'true' }}
name: Test Windows build
runs-on: windows-latest
env:
SCCACHE_GHA_ENABLED: "true"
SCCACHE_GHA_ENABLED: 'true'
steps:
- name: Look up Git repository in cache
uses: actions/cache/restore@v4
Expand All @@ -161,7 +166,7 @@ jobs:
- name: Prepare sccache
uses: mozilla-actions/[email protected]
- name: Compile via MSVC
run: |
run: |-
$env:TEST_SUPPORT = "disabled"
$env:INCLUDE += ";$($pwd.Path)\vcpkg\packages\opencl_x64-windows\include"
$env:LIB += ";$($pwd.Path)\vcpkg\packages\opencl_x64-windows\lib"
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test_doc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
---
name: Test building documentation
on:
pull_request:
types: [opened, reopened, synchronize]
types:
- opened
- reopened
- synchronize
jobs:
changes:
name: Detect changes
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test_format.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
---
name: Check code style
on:
pull_request:
types: [opened, reopened, synchronize]
types:
- opened
- reopened
- synchronize
jobs:
test_format:
name: Check code style
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test_release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
---
name: Test publishing packages
on:
pull_request:
types: [opened, reopened, synchronize]
types:
- opened
- reopened
- synchronize
jobs:
changes:
name: Detect changes
Expand Down
5 changes: 3 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
version: 2
build:
os: "ubuntu-lts-latest"
os: ubuntu-lts-latest
tools:
python: "latest"
python: latest
apt_packages:
- doxygen
commands:
Expand Down

0 comments on commit dc3631b

Please sign in to comment.