Skip to content
Merged
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
22 changes: 11 additions & 11 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
time: "05:24"
target-branch: ci/dependency-updates
labels:
- CI/CD
- skip_changelog
version: 2 ##
updates: ##
- package-ecosystem: github-actions ##
directory: "/" ##
schedule: ##
interval: daily ##
time: "05:24" ##
target-branch: ci/dependency-updates ##
labels: ##
- CI/CD ##
- skip_changelog ##
70 changes: 35 additions & 35 deletions .github/workflows/cd_release.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
name: CD - Publish

on:
release:
types:
- published

jobs:
build:
name: External
name: CD - Publish ##
##
on: ##
release: ##
types: ##
- published ##
##
jobs: ##
build: ##
name: External ##
uses: SINTEF/ci-cd/.github/workflows/cd_release.yml@v2.9.2
if: github.repository == 'EMMC-ASBL/tripper' && startsWith(github.ref, 'refs/tags/v')
with:
# General
git_username: "TEAM 4.0[bot]"
git_email: "Team4.0@SINTEF.no"
if: github.repository == 'EMMC-ASBL/tripper' && startsWith(github.ref, 'refs/tags/v') ##
with: ##
# General ##
git_username: "TEAM 4.0[bot]" ##
git_email: "Team4.0@SINTEF.no" ##
release_branch: master
install_extras: "[dev]"

# Build package
python_package: true
package_dirs: tripper
install_extras: "[dev]" ##
##
# Build package ##
python_package: true ##
package_dirs: tripper ##
python_version_build: "3.11"
build_libs: "flit"
build_cmd: "flit build"
build_dir: "dist"
build_libs: "flit" ##
build_cmd: "flit build" ##
build_dir: "dist" ##
publish_on_pypi: false
upload_distribution: true

# Build & publish documentation
update_docs: true
##
# Build & publish documentation ##
update_docs: true ##
python_version_docs: "3.11"
doc_extras: "[docs]"
changelog_exclude_labels: "skip_changelog,duplicate,question,invalid,wontfix"
docs_framework: mkdocs
secrets:
PAT: ${{ secrets.RELEASE_PAT }}
doc_extras: "[docs]" ##
changelog_exclude_labels: "skip_changelog,duplicate,question,invalid,wontfix" ##
docs_framework: mkdocs ##
secrets: ##
PAT: ${{ secrets.RELEASE_PAT }} ##

publish:
name: Publish on PyPI
needs: build
runs-on: ubuntu-latest

environment:
name: release
url: https://pypi.org/project/tripper/
environment: ##
name: release ##
url: https://pypi.org/project/tripper/ ##
permissions:
id-token: write

steps:
- name: Download built distritbution
uses: actions/download-artifact@v5
with:
name: dist
name: dist ##
path: dist

- name: Publish on PyPI
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/ci_automerge_dependency_prs.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: CI - Activate auto-merging for dependencies PRs

on:
pull_request_target:
branches: [ci/dependency-updates]

jobs:
update-dependencies-branch:
name: External
name: CI - Activate auto-merging for dependencies PRs ##
##
on: ##
pull_request_target: ##
branches: [ci/dependency-updates] ##
##
jobs: ##
update-dependencies-branch: ##
name: External ##
uses: SINTEF/ci-cd/.github/workflows/ci_automerge_prs.yml@v2.9.2
if: github.repository_owner == 'EMMC-ASBL' && ( ( startsWith(github.event.pull_request.head.ref, 'dependabot/') && github.actor == 'dependabot[bot]' ) || ( github.event.pull_request.head.ref == 'ci/update-pyproject' && github.actor == 'TEAM4-0' ) )
secrets:
PAT: ${{ secrets.RELEASE_PAT }}
if: github.repository_owner == 'EMMC-ASBL' && ( ( startsWith(github.event.pull_request.head.ref, 'dependabot/') && github.actor == 'dependabot[bot]' ) || ( github.event.pull_request.head.ref == 'ci/update-pyproject' && github.actor == 'TEAM4-0' ) ) ##
secrets: ##
PAT: ${{ secrets.RELEASE_PAT }} ##
54 changes: 27 additions & 27 deletions .github/workflows/ci_cd_updated_main.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
name: CI/CD - New updates to 'master'

on:
push:
##
on: ##
push: ##
branches: [master]

jobs:
update-deps-branch-and-docs:
name: External
##
jobs: ##
update-deps-branch-and-docs: ##
name: External ##
uses: SINTEF/ci-cd/.github/workflows/ci_cd_updated_default_branch.yml@v2.9.2
if: github.repository_owner == 'EMMC-ASBL'
with:
# General
git_username: "TEAM 4.0[bot]"
git_email: "Team4.0@SINTEF.no"
if: github.repository_owner == 'EMMC-ASBL' ##
with: ##
# General ##
git_username: "TEAM 4.0[bot]" ##
git_email: "Team4.0@SINTEF.no" ##
default_repo_branch: master

# Permanent dependencies branch
update_dependencies_branch: true
permanent_dependencies_branch: "ci/dependency-updates"

# Build & publish documentation
update_docs: true
update_python_api_ref: true
package_dirs: tripper
update_docs_landing_page: true
##
# Permanent dependencies branch ##
update_dependencies_branch: true ##
permanent_dependencies_branch: "ci/dependency-updates" ##
##
# Build & publish documentation ##
update_docs: true ##
update_python_api_ref: true ##
package_dirs: tripper ##
update_docs_landing_page: true ##
python_version: "3.12"
doc_extras: "[docs]"
changelog_exclude_labels: "skip_changelog,duplicate,question,invalid,wontfix"
docs_framework: mkdocs
secrets:
PAT: ${{ secrets.RELEASE_PAT }}
doc_extras: "[docs]" ##
changelog_exclude_labels: "skip_changelog,duplicate,question,invalid,wontfix" ##
docs_framework: mkdocs ##
secrets: ##
PAT: ${{ secrets.RELEASE_PAT }} ##
42 changes: 21 additions & 21 deletions .github/workflows/ci_check_dependencies.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
name: CI - Check dependencies PR

on:
schedule:
# At 7:30 every Monday (5:30 UTC)
- cron: "30 5 * * 1"
workflow_dispatch:

jobs:
check-dependencies:
name: External
name: CI - Check dependencies PR ##
##
on: ##
schedule: ##
# At 7:30 every Monday (5:30 UTC) ##
- cron: "30 5 * * 1" ##
workflow_dispatch: ##
##
jobs: ##
check-dependencies: ##
name: External ##
uses: SINTEF/ci-cd/.github/workflows/ci_check_pyproject_dependencies.yml@v2.9.2
if: github.repository_owner == 'EMMC-ASBL'
with:
git_username: "TEAM 4.0[bot]"
git_email: "Team4.0@SINTEF.no"
target_branch: "ci/dependency-updates"
python_version: "3.9"
install_extras: "[dev]"
pr_labels: "CI/CD,skip_changelog"
secrets:
PAT: ${{ secrets.RELEASE_PAT }}
if: github.repository_owner == 'EMMC-ASBL' ##
with: ##
git_username: "TEAM 4.0[bot]" ##
git_email: "Team4.0@SINTEF.no" ##
target_branch: "ci/dependency-updates" ##
python_version: "3.9" ##
install_extras: "[dev]" ##
pr_labels: "CI/CD,skip_changelog" ##
secrets: ##
PAT: ${{ secrets.RELEASE_PAT }} ##
Loading
Loading