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