From 93db36ca3f4950d7f4a524cb6162b62d550d4d61 Mon Sep 17 00:00:00 2001 From: trincaog Date: Tue, 2 Jan 2024 20:36:28 +0000 Subject: [PATCH] run tests on push --- .github/workflows/publish-package.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 7d4ff61..5eaddd2 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -11,13 +11,16 @@ jobs: permissions: id-token: write runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.11"] steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.x + python-version: ${{ matrix.python-version }} - name: Set environment variables id: set_env_variables @@ -41,7 +44,7 @@ jobs: - name: Update version in pyproject.toml run: >- - sed -i "s/{{VERSION_PLACEHOLDER}}/${{ steps.tag.outputs.PKG_VERSION }}/g" pyproject.toml + sed -i "s/{{TAG_NAME}}/${{ steps.tag.outputs.PKG_VERSION }}/g" pyproject.toml - name: Build package run: python -m build