From acbcaaba185d13c3e60a5d157e410b188d10d4d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Randy=20D=C3=B6ring?= <30527984+radoering@users.noreply.github.com> Date: Wed, 27 Sep 2023 20:59:14 +0200 Subject: [PATCH 1/3] test with poetry@master --- .github/workflows/main.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 676df43..e03c3c2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,15 +16,11 @@ jobs: runs-on: ${{ matrix.image }} strategy: matrix: - os: [Ubuntu, macOS, Windows] - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + os: [Windows] + python-version: ["3.12"] include: - - os: Ubuntu - image: ubuntu-latest - os: Windows image: windows-2022 - - os: macOS - image: macos-11 fail-fast: false defaults: run: @@ -44,7 +40,7 @@ jobs: - name: Bootstrap poetry run: | - curl -sL https://install.python-poetry.org | python - -y ${{ matrix.bootstrap-args }} + curl -sL https://install.python-poetry.org | python - -y --git https://github.com/python-poetry/poetry.git@master - name: Update PATH if: ${{ matrix.os != 'Windows' }} From 9e5fb6496a16936f73860805e5c0288017932db7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Randy=20D=C3=B6ring?= <30527984+radoering@users.noreply.github.com> Date: Wed, 27 Sep 2023 21:39:47 +0200 Subject: [PATCH 2/3] no cache, no tests --- .github/workflows/main.yml | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e03c3c2..4604386 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -53,22 +53,5 @@ jobs: - name: Configure poetry run: poetry config virtualenvs.in-project true - - name: Set up cache - uses: actions/cache@v3 - id: cache - with: - path: .venv - key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }} - - - name: Ensure cache is healthy - if: steps.cache.outputs.cache-hit == 'true' - run: timeout 10s poetry run pip --version || rm -rf .venv - - name: Install dependencies run: poetry install --with github-actions - - - name: Run mypy - run: poetry run mypy - - - name: Run pytest - run: poetry run pytest -v From 8ac90941cfd693784adc09a86cbd9660b44ffe4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Randy=20D=C3=B6ring?= <30527984+radoering@users.noreply.github.com> Date: Wed, 27 Sep 2023 22:36:42 +0200 Subject: [PATCH 3/3] additional debug output --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4604386..19c2ded 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,7 +40,7 @@ jobs: - name: Bootstrap poetry run: | - curl -sL https://install.python-poetry.org | python - -y --git https://github.com/python-poetry/poetry.git@master + curl -sL https://install.python-poetry.org | python - -y --git https://github.com/radoering/poetry.git@debug-build-error - name: Update PATH if: ${{ matrix.os != 'Windows' }}