From 31d791c9dcbb8c72b8b170019352caaba9737763 Mon Sep 17 00:00:00 2001 From: Lee Watson Date: Tue, 26 Dec 2023 23:54:04 +0000 Subject: [PATCH] Clean up workflow files --- .github/workflows/docker.yml | 8 +++----- .github/workflows/lint.yml | 7 +++++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index e88f57b..13d04ba 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,4 +1,4 @@ -name: Create and publish a Docker image +name: Build and publish Docker image on: push: @@ -23,12 +23,10 @@ jobs: permissions: contents: read packages: write - steps: - - name: Checkout repository - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - name: Log in to the Container registry + - name: Log in to the container registry if: github.event_name != 'pull_request' uses: docker/login-action@v3 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a797148..7d1ae86 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,8 +1,11 @@ -name: Lint with pre-commit +name: Lint + on: [workflow_call] + env: RUFF_OUTPUT_FORMAT: "github" RUFF_NO_CACHE: true + jobs: lint: runs-on: ubuntu-latest @@ -28,7 +31,7 @@ jobs: key: poetry-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }} restore-keys: poetry-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }} - - name: Install Dependencies + - name: Install dependencies run: poetry install if: steps.cache.outputs.cache-hit != 'true'