From b4918eb40f06c74504362d3d4cf6f66e99e76a0d Mon Sep 17 00:00:00 2001 From: skrobinho Date: Fri, 27 Sep 2024 17:02:56 +0200 Subject: [PATCH] CI: update workflows --- .github/workflows/licensechecker.yaml | 9 ++------- .github/workflows/poetry-test.yml | 2 +- .github/workflows/pre-commit.yml | 25 ++----------------------- 3 files changed, 5 insertions(+), 31 deletions(-) diff --git a/.github/workflows/licensechecker.yaml b/.github/workflows/licensechecker.yaml index be0ea4fb6..717355830 100644 --- a/.github/workflows/licensechecker.yaml +++ b/.github/workflows/licensechecker.yaml @@ -2,13 +2,8 @@ name: Check License Lines on: [pull_request] jobs: check-license-lines: - runs-on: - - self-hosted - - robo-pc-066 - container: - image: ubuntu:24.04 - + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@master - name: Check License Lines - uses: kt3k/license_checker@v1.0.6 + uses: kt3k/license_checker@v1.0.6 \ No newline at end of file diff --git a/.github/workflows/poetry-test.yml b/.github/workflows/poetry-test.yml index f964b5274..1c914342c 100644 --- a/.github/workflows/poetry-test.yml +++ b/.github/workflows/poetry-test.yml @@ -62,4 +62,4 @@ jobs: run: | source /opt/ros/${{ matrix.ros_distro }}/setup.bash source install/setup.bash - poetry run pytest + poetry run pytest \ No newline at end of file diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 64c55a637..d0768539d 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -9,36 +9,15 @@ on: jobs: pre-commit: - runs-on: - - self-hosted - - robo-pc-066 - - container: - image: ubuntu:22.04 + runs-on: ubuntu-latest steps: - - name: Clean up build space - run: | - ls -la $GITHUB_WORKSPACE - rm -rf $GITHUB_WORKSPACE/* || true - rm -rf $GITHUB_WORKSPACE/.??* || true - ls -la $GITHUB_WORKSPACE - ls -la $GITHUB_WORKSPACE/../../_temp/_github_home - rm -rf $GITHUB_WORKSPACE/../../_temp/_github_home/* || true - rm -rf $GITHUB_WORKSPACE/../../_temp/_github_home/.??* || true - ls -la $GITHUB_WORKSPACE/../../_temp/_github_home - - name: Checkout code uses: actions/checkout@v4 with: fetch-depth: 0 - - - name: Install python - uses: actions/setup-python@v5 - with: - python-version: '3.10' - name: Run pre-commit uses: pre-commit/action@v3.0.1 with: - extra_args: "--all-files" + extra_args: "--all-files" \ No newline at end of file