From 87931a25d030a48ff68f976068e0ee7789a6e63b Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Thu, 24 Oct 2024 01:24:57 +0200 Subject: [PATCH] CI: Slightly update GHA configuration, now targeting branch `main` Also, add a configuration snippet to cancel redundant in-progress jobs. That means running jobs are terminated when subsequently pushing to the same branch, in order to save resources. --- .github/workflows/test.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f81f9f7..79ebd1f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,13 +1,15 @@ -# This workflow will install Python dependencies, run tests and lint with a variety of Python versions -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - -name: tests +name: "Tests" on: push: - branches: [ develop ] - pull_request: - branches: [ develop ] + branches: [ main ] + pull_request: ~ + workflow_dispatch: + +# Cancel redundant in-progress jobs. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: build: @@ -25,5 +27,3 @@ jobs: - uses: yezz123/setup-uv@v4 - run: uv pip install -r requirements.txt --system - run: pytest - - \ No newline at end of file