Skip to content

Commit

Permalink
refactor(ci): replaced old ci pipelines with new ones
Browse files Browse the repository at this point in the history
  • Loading branch information
kluge7 committed Nov 8, 2024
1 parent b90c59e commit 764e54d
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 280 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/bandit.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/black.yaml

This file was deleted.

72 changes: 0 additions & 72 deletions .github/workflows/build-test.yaml

This file was deleted.

11 changes: 11 additions & 0 deletions .github/workflows/ci-pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Run Pre-Commit Workflow
# Run pre-commit hooks on a repository
on:
workflow_dispatch:
pull_request:
jobs:
call_reusable_workflow:
uses: vortexntnu/vortex-ci/.github/workflows/reusable-pre-commit.yaml@main
with:
ref: ${{ github.ref }}
python_version: '3.11'
33 changes: 0 additions & 33 deletions .github/workflows/clang-format.yaml

This file was deleted.

60 changes: 0 additions & 60 deletions .github/workflows/docker-publish.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/isort.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/mypy.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/pylint.yaml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/source-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Source Build
# Build the ROS 2 workspace from source code and run tests
on:
workflow_dispatch:
pull_request:
# Runs daily to check for dependency issues or flaking tests
schedule:
- cron: "0 1 * * *"
jobs:
source-build:
uses: vortexntnu/vortex-ci/.github/workflows/reusable-source-build.yaml@main
with:
ros_distro: 'humble'
os_name: 'ubuntu-22.04'
ref: ${{ github.ref_name }}
vcs_repo_file_url: 'https://raw.githubusercontent.com/vortexntnu/vortex-auv/main/ros2.repos'
13 changes: 13 additions & 0 deletions .github/workflows/update-pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Run Pre-Commit Update Workflow
# Update pre-commit config and create a pull request if changes are detected
on:
workflow_dispatch:
schedule:
- cron: "0 0 1 * *" # Run every month at midnight on the first day of the month
jobs:
call_reusable_workflow:
uses: vortexntnu/vortex-ci/.github/workflows/reusable-update-pre-commit.yaml@main
with:
ref: ${{ github.ref }}
python_version: '3.10'
responsible: 'kluge7'

0 comments on commit 764e54d

Please sign in to comment.