From 6f582f935a49cf0149dd0162a42225278e41299d Mon Sep 17 00:00:00 2001 From: Pascal Sachs Date: Wed, 10 Apr 2024 09:08:02 +0200 Subject: [PATCH] Fix github action Git hub release action should only run if a new tag is published --- .github/workflows/publish.yml | 2 +- .github/workflows/test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 29e0072..b4dee62 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,6 +1,6 @@ name: Build and Publish Package to pypi.org on: - create: + push: tags: - "[0-9]+.[0-9]+.[0-9]+" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d557b79..3a668e2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: name: Define a cache for the virtual environment based on the dependencies lock file with: path: ./.venv - key: venv-${{ hashFiles('poetry.lock') }} + key: venv-${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }} - name: Install the project dependencies run: poetry install --with test - name: Verify style with flake8