From 00f44b3286c1aaa9046963eaad75296ee9826594 Mon Sep 17 00:00:00 2001 From: GlassOfWhiskey Date: Wed, 8 May 2024 11:18:32 +0200 Subject: [PATCH] Fix release pipeline --- .github/workflows/release.yml | 8 +++++--- lint-requirements.txt | 2 +- test-requirements.txt | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f7d3a4a..a01e4ae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,6 +37,11 @@ jobs: pypi: name: "Publish on PyPI" runs-on: ubuntu-22.04 + environment: + name: pypi + url: https://pypi.org/project/streamflow-project + permissions: + id-token: write if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - uses: actions/checkout@v4 @@ -55,6 +60,3 @@ jobs: - name: "Publish package to PyPI" uses: pypa/gh-action-pypi-publish@release/v1 if: ${{ env.PLUGIN_VERSION != env.PYPI_VERSION }} - with: - user: __token__ - password: ${{ secrets.PYPI_TOKEN }} diff --git a/lint-requirements.txt b/lint-requirements.txt index 8b79667..b303120 100644 --- a/lint-requirements.txt +++ b/lint-requirements.txt @@ -1,4 +1,4 @@ black==24.4.2 -codespell==2.2.5 +codespell==2.2.6 flake8-bugbear==24.4.26 pyupgrade==3.15.2 \ No newline at end of file diff --git a/test-requirements.txt b/test-requirements.txt index ca9405f..387ad6a 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,4 +1,4 @@ -pytest==8.0.1 +pytest==8.1.1 pytest-asyncio==0.21.1 pytest-cov==5.0.0 pytest-xdist==3.6.1