From 84492b51d38a91b36d26ca7ee8ec9dc4cf473700 Mon Sep 17 00:00:00 2001 From: jorenham Date: Sun, 18 Aug 2024 03:40:13 +0200 Subject: [PATCH 1/2] CI poetry cache fix attempt --- .github/workflows/ci.yml | 44 ++++++++++++++++++---------------------- 1 file changed, 20 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10e7738..62fc89f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,10 +25,7 @@ jobs: - uses: actions/checkout@v4 - name: install poetry - run: | - pipx install poetry - poetry config virtualenvs.create true --local - poetry config virtualenvs.in-project true --local + run: pipx install poetry - uses: actions/setup-python@v5 with: @@ -38,11 +35,11 @@ jobs: - name: poetry check run: poetry check + - name: poetry env use + run: poetry env use 3.10 + - name: poetry install - run: > - poetry install - --without debug,docs - --with pandas + run: poetry install --without debug,docs --with pandas - name: codespell run: poetry run codespell . @@ -72,39 +69,38 @@ jobs: python-version: ["3.10", "3.12", "3.13-dev"] pandas: ["without", "with"] exclude: - - python-version: "3.13-dev" - os: windows-latest - python-version: "3.12" pandas: "with" - python-version: "3.13-dev" pandas: "with" + - python-version: "3.13-dev" + os: windows-latest runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v4 - - name: install scipy deps if: ${{ matrix.python-version == '3.13-dev' }} - run: > - sudo apt-get install - gcc - g++ - gfortran - libopenblas-dev - liblapack-dev - pkg-config + run: sudo apt-get install libopenblas-dev + + - uses: actions/checkout@v4.1.7 - name: install poetry - run: | - pipx install poetry - poetry config virtualenvs.create true --local - poetry config virtualenvs.in-project true --local + run: pipx install poetry - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} cache: poetry + cache-dependency-path: poetry.lock + + - name: poetry env use + run: poetry env use 3.13 + if: ${{ matrix.python-version == '3.13-dev' }} + + - name: poetry env use + run: poetry env use ${{ matrix.python-version }} + if: ${{ matrix.python-version != '3.13-dev' }} - name: poetry install run: > From c48674070d06b6f941031ad2d5a09700c263bf80 Mon Sep 17 00:00:00 2001 From: jorenham Date: Sun, 18 Aug 2024 03:46:20 +0200 Subject: [PATCH 2/2] CI poetry cache fix attempt 2 --- .github/workflows/ci.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 62fc89f..0b3bba7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,10 @@ jobs: - uses: actions/checkout@v4 - name: install poetry - run: pipx install poetry + run: | + pipx install poetry + poetry config virtualenvs.create true --local + poetry config virtualenvs.in-project true --local - uses: actions/setup-python@v5 with: @@ -35,9 +38,6 @@ jobs: - name: poetry check run: poetry check - - name: poetry env use - run: poetry env use 3.10 - - name: poetry install run: poetry install --without debug,docs --with pandas @@ -94,14 +94,6 @@ jobs: cache: poetry cache-dependency-path: poetry.lock - - name: poetry env use - run: poetry env use 3.13 - if: ${{ matrix.python-version == '3.13-dev' }} - - - name: poetry env use - run: poetry env use ${{ matrix.python-version }} - if: ${{ matrix.python-version != '3.13-dev' }} - - name: poetry install run: > poetry install