From 6c62b4d648e02510e3f3812cba67f8ea94b1354b Mon Sep 17 00:00:00 2001 From: gmsantos Date: Sat, 28 May 2022 02:06:09 +0200 Subject: [PATCH] Try to fix poetry python version to use see https://github.com/actions/setup-python/issues/374#issuecomment-1088938718 --- .github/workflows/docs.yml | 5 +++-- .github/workflows/pypi_publish.yml | 5 +++-- .github/workflows/run_tests.yml | 5 +++-- .github/workflows/test_pypi_publish.yml | 5 +++-- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 195efdb1..d7414214 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -22,10 +22,11 @@ jobs: with: python-version: "3.7" cache: "poetry" - cache-dependency-path: "**/poetry.lock" - name: Install dependencies - run: poetry install + run: | + poetry env use "3.7" + poetry install - name: Deploy docs run: poetry run portray on_github_pages -f diff --git a/.github/workflows/pypi_publish.yml b/.github/workflows/pypi_publish.yml index fc4a812a..19b8b8c9 100644 --- a/.github/workflows/pypi_publish.yml +++ b/.github/workflows/pypi_publish.yml @@ -21,10 +21,11 @@ jobs: with: python-version: "3.7" cache: "poetry" - cache-dependency-path: "**/poetry.lock" - name: Install dependencies - run: poetry install + run: | + poetry env use "3.7" + poetry install - name: Bump version number run: poetry version ${{ github.event.release.tag_name }} diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 009f3726..887b209d 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -26,10 +26,11 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: "poetry" - cache-dependency-path: "**/poetry.lock" - name: Install dependencies - run: poetry install + run: | + poetry env use "${{ matrix.python-version }}" + poetry install - name: Run Checks run: | diff --git a/.github/workflows/test_pypi_publish.yml b/.github/workflows/test_pypi_publish.yml index 1cb406b9..e7036c27 100644 --- a/.github/workflows/test_pypi_publish.yml +++ b/.github/workflows/test_pypi_publish.yml @@ -21,10 +21,11 @@ jobs: with: python-version: "3.7" cache: "poetry" - cache-dependency-path: "**/poetry.lock" - name: Install dependencies - run: poetry install + run: | + poetry env use "3.7" + poetry install - name: Bump version number run: poetry version ${{ github.event.release.tag_name }}