From 6768e6a6e1ee7b37d858a52e86af214045e15711 Mon Sep 17 00:00:00 2001 From: Reuben Frankel Date: Sat, 10 Feb 2024 01:18:29 +0000 Subject: [PATCH 1/2] Try to setup Poetry env for specific Python version before installing dependencies --- .../{{cookiecutter.mapper_id}}/.github/workflows/test.yml | 1 + .../{{cookiecutter.tap_id}}/.github/workflows/test.yml | 1 + .../{{cookiecutter.target_id}}/.github/workflows/test.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/cookiecutter/mapper-template/{{cookiecutter.mapper_id}}/.github/workflows/test.yml b/cookiecutter/mapper-template/{{cookiecutter.mapper_id}}/.github/workflows/test.yml index 33313a43e..6b033c9e6 100644 --- a/cookiecutter/mapper-template/{{cookiecutter.mapper_id}}/.github/workflows/test.yml +++ b/cookiecutter/mapper-template/{{cookiecutter.mapper_id}}/.github/workflows/test.yml @@ -24,6 +24,7 @@ jobs: pip install poetry - name: Install dependencies run: | + poetry env use {{ '${{ matrix.python-version }}' }} poetry install - name: Test with pytest run: | diff --git a/cookiecutter/tap-template/{{cookiecutter.tap_id}}/.github/workflows/test.yml b/cookiecutter/tap-template/{{cookiecutter.tap_id}}/.github/workflows/test.yml index 3922fc4ed..a6c14a56a 100644 --- a/cookiecutter/tap-template/{{cookiecutter.tap_id}}/.github/workflows/test.yml +++ b/cookiecutter/tap-template/{{cookiecutter.tap_id}}/.github/workflows/test.yml @@ -24,6 +24,7 @@ jobs: pip install poetry - name: Install dependencies run: | + poetry env use {{ '${{ matrix.python-version }}' }} poetry install - name: Test with pytest run: | diff --git a/cookiecutter/target-template/{{cookiecutter.target_id}}/.github/workflows/test.yml b/cookiecutter/target-template/{{cookiecutter.target_id}}/.github/workflows/test.yml index 6f9d71cae..43bb12cbd 100644 --- a/cookiecutter/target-template/{{cookiecutter.target_id}}/.github/workflows/test.yml +++ b/cookiecutter/target-template/{{cookiecutter.target_id}}/.github/workflows/test.yml @@ -24,6 +24,7 @@ jobs: pip install poetry - name: Install dependencies run: | + poetry env use {{ '${{ matrix.python-version }}' }} poetry install - name: Test with pytest run: | From 4da46fd4eb17a498735d721b6b5e747bf1708e3f Mon Sep 17 00:00:00 2001 From: Reuben Frankel Date: Sat, 10 Feb 2024 01:20:05 +0000 Subject: [PATCH 2/2] Keep running tests for other Python versions if others fail --- .../{{cookiecutter.mapper_id}}/.github/workflows/test.yml | 1 + .../{{cookiecutter.tap_id}}/.github/workflows/test.yml | 1 + .../{{cookiecutter.target_id}}/.github/workflows/test.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/cookiecutter/mapper-template/{{cookiecutter.mapper_id}}/.github/workflows/test.yml b/cookiecutter/mapper-template/{{cookiecutter.mapper_id}}/.github/workflows/test.yml index 6b033c9e6..780d985e0 100644 --- a/cookiecutter/mapper-template/{{cookiecutter.mapper_id}}/.github/workflows/test.yml +++ b/cookiecutter/mapper-template/{{cookiecutter.mapper_id}}/.github/workflows/test.yml @@ -8,6 +8,7 @@ on: [push] jobs: pytest: runs-on: ubuntu-latest + continue-on-error: true env: GITHUB_TOKEN: {{ '${{secrets.GITHUB_TOKEN}}' }} strategy: diff --git a/cookiecutter/tap-template/{{cookiecutter.tap_id}}/.github/workflows/test.yml b/cookiecutter/tap-template/{{cookiecutter.tap_id}}/.github/workflows/test.yml index a6c14a56a..8718c7c31 100644 --- a/cookiecutter/tap-template/{{cookiecutter.tap_id}}/.github/workflows/test.yml +++ b/cookiecutter/tap-template/{{cookiecutter.tap_id}}/.github/workflows/test.yml @@ -8,6 +8,7 @@ on: [push] jobs: pytest: runs-on: ubuntu-latest + continue-on-error: true env: GITHUB_TOKEN: {{ '${{secrets.GITHUB_TOKEN}}' }} strategy: diff --git a/cookiecutter/target-template/{{cookiecutter.target_id}}/.github/workflows/test.yml b/cookiecutter/target-template/{{cookiecutter.target_id}}/.github/workflows/test.yml index 43bb12cbd..88490fefb 100644 --- a/cookiecutter/target-template/{{cookiecutter.target_id}}/.github/workflows/test.yml +++ b/cookiecutter/target-template/{{cookiecutter.target_id}}/.github/workflows/test.yml @@ -8,6 +8,7 @@ on: [push] jobs: pytest: runs-on: ubuntu-latest + continue-on-error: true env: GITHUB_TOKEN: {{ '${{secrets.GITHUB_TOKEN}}' }} strategy: