From 257507c269e9ec0bb5be21b73e3a7d7ca217323c Mon Sep 17 00:00:00 2001 From: dancoon Date: Mon, 22 Jan 2024 16:13:35 +0300 Subject: [PATCH] fix: :bug: Fix the github workflows --- .github/workflows/release.yaml | 12 +++++------- .github/workflows/test.yaml | 10 ++-------- 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 19ed6ae..7339abf 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -17,14 +17,12 @@ jobs: with: python-version: 3.12 - - name: Install Poetry + - name: Install dependencies run: | - curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - - - - name: Add Poetry to Path - run: | - echo "$HOME/.poetry/bin" >> $GITHUB_PATH - + python -m pip install --upgrade pip + pip install poetry + poetry install + - name: Configure for Test PyPI run: | poetry config repositories.testpypi https://test.pypi.org/legacy/ diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 657ad2e..d24a9d6 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -23,16 +23,10 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Install Poetry - run: | - curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - - - - name: Add Poetry to Path - run: | - echo "$HOME/.poetry/bin" >> $GITHUB_PATH - - name: Install dependencies run: | + python -m pip install --upgrade pip + pip install poetry poetry install - name: Run tests