From e102122ec8afa1e85aa0abaed295da568bb1d74f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez-Mondrag=C3=B3n?= Date: Mon, 2 Sep 2024 17:15:51 -0600 Subject: [PATCH] chore: Use a GitHub environment for publishing --- .github/workflows/dynamic-publish.yaml | 3 +++ .github/workflows/test.yml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dynamic-publish.yaml b/.github/workflows/dynamic-publish.yaml index f8b39c5..3d24356 100644 --- a/.github/workflows/dynamic-publish.yaml +++ b/.github/workflows/dynamic-publish.yaml @@ -20,6 +20,9 @@ jobs: publish: runs-on: ubuntu-latest needs: build + environment: + name: pypi + url: https://pypi.org/p/tap-jotform if: startsWith(github.ref, 'refs/tags/') steps: - uses: actions/download-artifact@v4 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b46c8fc..a522cb3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,7 +46,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5.2.0 with: - python-version: 3.12 + python-version: 3.x - name: Install Poetry run: | @@ -85,7 +85,7 @@ jobs: strategy: matrix: include: - - {python-version: "3.12", session: "mypy"} + - {python-version: "3.x", session: "mypy"} - {python-version: "3.13", session: "tests"} - {python-version: "3.12", session: "tests"} - {python-version: "3.11", session: "tests"}