From 41f69e71d53e342003c4c2d89d4fb456166edba9 Mon Sep 17 00:00:00 2001 From: Tim Grelka Date: Fri, 4 Jul 2025 00:30:50 +0200 Subject: [PATCH] ci: only run on push --- .github/workflows/pytest.yml | 5 ++--- .github/workflows/ruff.yml | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 681e970..fe81693 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -1,5 +1,5 @@ name: Pytest -on: [push, pull_request] +on: push concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -15,9 +15,8 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - cache: 'pip' + cache: "pip" - name: Install dependencies run: pip install -r requirements.txt - name: Test with pytest run: pytest ./test --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html - \ No newline at end of file diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index 1f323b2..dfbd008 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -1,5 +1,5 @@ name: Ruff -on: pull_request +on: push concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -13,4 +13,4 @@ jobs: args: check --output-format=github - uses: astral-sh/ruff-action@v3 with: - args: format --diff \ No newline at end of file + args: format --diff