From 057b52a8719db7084f6a831714d195441f5dfbcf Mon Sep 17 00:00:00 2001 From: Larry Ogrodnek Date: Sat, 7 Sep 2024 15:06:45 -0400 Subject: [PATCH] asd --- .github/workflows/release.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c20cb6f..9eff6aa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,15 +15,30 @@ jobs: uses: actions/checkout@v3 - name: Set up Python + id: setup-python uses: actions/setup-python@v4 with: - python-version: "3.9" # Adjust the Python version as needed + python-version: "3.9" - name: Install Poetry - uses: abatilo/actions-poetry@v2 + uses: snok/install-poetry@v1 + with: + virtualenvs-create: true + virtualenvs-in-project: true + installer-parallel: true + + - name: Load cached venv + id: cached-poetry-dependencies + uses: actions/cache@v3 + with: + path: .venv + key: venv-release-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} - name: Install dependencies - run: poetry install + if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' + run: poetry install --no-interaction --no-root + - name: Install project + run: poetry install --no-interaction - name: Set up semantic release run: poetry run python-semantic-release publish --noop