From 065af5a6805a7cb701068fa5861e38237be77133 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Mon, 19 Feb 2024 18:54:40 +0100 Subject: [PATCH] update workflows --- .github/workflows/publish.yaml | 5 +++++ .github/workflows/{ci.yaml => test.yaml} | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) rename .github/workflows/{ci.yaml => test.yaml} (96%) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 8885f76..92128df 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -25,6 +25,11 @@ jobs: with: python-version: "3.12" + - name: Check if the release tag matches the version + uses: samuelcolvin/check-python-version@v4.1 + with: + version_file_path: rendercv/__init__.py + - name: Build run: | pip install -U build diff --git a/.github/workflows/ci.yaml b/.github/workflows/test.yaml similarity index 96% rename from .github/workflows/ci.yaml rename to .github/workflows/test.yaml index fd9196d..e47a376 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/test.yaml @@ -1,11 +1,11 @@ -name: Continuous integration +name: Test and report coverage # GitHub events that triggers the workflow: on: push: - branches: ["main", "dev", "v1"] + branches: ["main", "dev"] pull_request: - branches: ["main", "dev", "v1"] + branches: ["main", "dev"] workflow_call: # The workflow: