diff --git a/.github/workflows/autofix-command.yml b/.github/workflows/autofix-command.yml index 2fed1166b..cf142c5f3 100644 --- a/.github/workflows/autofix-command.yml +++ b/.github/workflows/autofix-command.yml @@ -72,10 +72,13 @@ jobs: [1]: ${{ steps.vars.outputs.run-url }} + - name: Get tool versions + uses: marocchino/tool-versions-action@v1 + id: tool-versions - name: Set up Poetry uses: Gr1N/setup-poetry@v9 with: - poetry-version: "2.0.1" + poetry-version: ${{ steps.tool-versions.outputs.poetry }} - name: Set up Python uses: actions/setup-python@v5 with: diff --git a/.github/workflows/connector-tests.yml b/.github/workflows/connector-tests.yml index b0054ba4d..3263dde00 100644 --- a/.github/workflows/connector-tests.yml +++ b/.github/workflows/connector-tests.yml @@ -125,10 +125,15 @@ jobs: repository: airbytehq/airbyte ref: master path: airbyte + - name: Get tool versions + if: steps.no_changes.outputs.status != 'cancelled' + uses: marocchino/tool-versions-action@v1 + id: tool-versions - name: Set up Python + if: steps.no_changes.outputs.status != 'cancelled' uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: ${{ steps.tool-versions.outputs.python }} # Create initial pending status for test report - name: Create Pending Test Report Status if: steps.no_changes.outputs.status != 'cancelled' diff --git a/.github/workflows/pdoc_preview.yml b/.github/workflows/pdoc_preview.yml index 70b51d7ad..344b97dc0 100644 --- a/.github/workflows/pdoc_preview.yml +++ b/.github/workflows/pdoc_preview.yml @@ -13,14 +13,17 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + - name: Get tool versions + uses: marocchino/tool-versions-action@v1 + id: tool-versions - name: Set up Poetry uses: Gr1N/setup-poetry@v9 with: - poetry-version: "2.0.1" + poetry-version: ${{ steps.tool-versions.outputs.poetry }} - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: ${{ steps.tool-versions.outputs.python }} cache: "poetry" - name: Install dependencies diff --git a/.github/workflows/pdoc_publish.yml b/.github/workflows/pdoc_publish.yml index e0cd470b9..80f273982 100644 --- a/.github/workflows/pdoc_publish.yml +++ b/.github/workflows/pdoc_publish.yml @@ -30,14 +30,17 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + - name: Get tool versions + uses: marocchino/tool-versions-action@v1 + id: tool-versions - name: Set up Poetry uses: Gr1N/setup-poetry@v9 with: - poetry-version: "2.0.1" + poetry-version: ${{ steps.tool-versions.outputs.poetry }} - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: ${{ steps.tool-versions.outputs.python }} cache: "poetry" - name: Setup Pages uses: actions/configure-pages@v5 diff --git a/.github/workflows/poetry-lock-command.yml b/.github/workflows/poetry-lock-command.yml index 718cbcf15..a1e4d14ee 100644 --- a/.github/workflows/poetry-lock-command.yml +++ b/.github/workflows/poetry-lock-command.yml @@ -80,10 +80,13 @@ jobs: [1]: ${{ steps.vars.outputs.run-url }} + - name: Get tool versions + uses: marocchino/tool-versions-action@v1 + id: tool-versions - name: Set up Poetry uses: Gr1N/setup-poetry@v9 with: - poetry-version: "2.0.1" + poetry-version: ${{ steps.tool-versions.outputs.poetry }} - name: Set up Python uses: actions/setup-python@v5 with: diff --git a/.github/workflows/pypi_publish.yml b/.github/workflows/pypi_publish.yml index 87b2cc211..f460c90ee 100644 --- a/.github/workflows/pypi_publish.yml +++ b/.github/workflows/pypi_publish.yml @@ -272,9 +272,12 @@ jobs: IS_PRERELEASE: ${{ needs.build.outputs.IS_PRERELEASE }} runs-on: ubuntu-24.04 steps: + - name: Get tool versions + uses: marocchino/tool-versions-action@v1 + id: tool-versions - uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: ${{ steps.tool-versions.outputs.python }} - name: Checkout Airbyte Platform Internal uses: actions/checkout@v4 with: diff --git a/.github/workflows/pytest_fast.yml b/.github/workflows/pytest_fast.yml index de7500c10..f1c87f99a 100644 --- a/.github/workflows/pytest_fast.yml +++ b/.github/workflows/pytest_fast.yml @@ -14,10 +14,13 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Get tool versions + uses: marocchino/tool-versions-action@v1 + id: tool-versions - name: Set up Poetry uses: Gr1N/setup-poetry@v9 with: - poetry-version: "2.0.1" + poetry-version: ${{ steps.tool-versions.outputs.poetry }} - name: Check Poetry lock file is current run: poetry check @@ -41,14 +44,17 @@ jobs: # Common steps: - name: Checkout code uses: actions/checkout@v4 + - name: Get tool versions + uses: marocchino/tool-versions-action@v1 + id: tool-versions - name: Set up Poetry uses: Gr1N/setup-poetry@v9 with: - poetry-version: "2.0.1" + poetry-version: ${{ steps.tool-versions.outputs.poetry }} - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: ${{ steps.tool-versions.outputs.python }} cache: "poetry" - name: Install dependencies run: poetry install --all-extras diff --git a/.github/workflows/pytest_matrix.yml b/.github/workflows/pytest_matrix.yml index 4edf6ec20..24ab6bb2a 100644 --- a/.github/workflows/pytest_matrix.yml +++ b/.github/workflows/pytest_matrix.yml @@ -57,11 +57,15 @@ jobs: - 'bin/**' - 'poetry.lock' - 'pyproject.toml' + - name: Get tool versions + uses: marocchino/tool-versions-action@v1 + id: tool-versions + if: steps.changes.outputs.src == 'true' - name: Set up Poetry uses: Gr1N/setup-poetry@v9 if: steps.changes.outputs.src == 'true' with: - poetry-version: "2.0.1" + poetry-version: ${{ steps.tool-versions.outputs.poetry }} - name: Set up Python uses: actions/setup-python@v5 if: steps.changes.outputs.src == 'true' diff --git a/.github/workflows/python_dependency_analysis.yml b/.github/workflows/python_dependency_analysis.yml index 75c8ac435..47631e0d5 100644 --- a/.github/workflows/python_dependency_analysis.yml +++ b/.github/workflows/python_dependency_analysis.yml @@ -21,14 +21,17 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + - name: Get tool versions + uses: marocchino/tool-versions-action@v1 + id: tool-versions - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: ${{ steps.tool-versions.outputs.python }} - name: Set up Poetry uses: Gr1N/setup-poetry@v9 with: - poetry-version: "2.0.1" + poetry-version: ${{ steps.tool-versions.outputs.poetry }} - name: Install dependencies run: poetry install --all-extras diff --git a/.github/workflows/python_lint.yml b/.github/workflows/python_lint.yml index e1d6647d2..d3f5c04f5 100644 --- a/.github/workflows/python_lint.yml +++ b/.github/workflows/python_lint.yml @@ -14,14 +14,17 @@ jobs: # Common steps: - name: Checkout code uses: actions/checkout@v4 + - name: Get tool versions + uses: marocchino/tool-versions-action@v1 + id: tool-versions - name: Set up Poetry uses: Gr1N/setup-poetry@v9 with: - poetry-version: "2.0.1" + poetry-version: ${{ steps.tool-versions.outputs.poetry }} - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: ${{ steps.tool-versions.outputs.python }} cache: "poetry" - name: Install dependencies run: poetry install --all-extras @@ -37,14 +40,17 @@ jobs: # Common steps: - name: Checkout code uses: actions/checkout@v4 + - name: Get tool versions + uses: marocchino/tool-versions-action@v1 + id: tool-versions - name: Set up Poetry uses: Gr1N/setup-poetry@v9 with: - poetry-version: "1.8.4" + poetry-version: ${{ steps.tool-versions.outputs.poetry }} - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: ${{ steps.tool-versions.outputs.python }} cache: "poetry" - name: Install dependencies run: poetry install --all-extras @@ -60,14 +66,17 @@ jobs: # Common steps: - name: Checkout code uses: actions/checkout@v4 + - name: Get tool versions + uses: marocchino/tool-versions-action@v1 + id: tool-versions - name: Set up Poetry uses: Gr1N/setup-poetry@v9 with: - poetry-version: "1.8.4" + poetry-version: ${{ steps.tool-versions.outputs.poetry }} - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: ${{ steps.tool-versions.outputs.python }} cache: "poetry" - name: Install dependencies run: poetry install --all-extras diff --git a/.github/workflows/test-command.yml b/.github/workflows/test-command.yml index eac84b09a..083a51166 100644 --- a/.github/workflows/test-command.yml +++ b/.github/workflows/test-command.yml @@ -82,10 +82,13 @@ jobs: # Same as the `python_pytest.yml` file: + - name: Get tool versions + uses: marocchino/tool-versions-action@v1 + id: tool-versions - name: Set up Poetry uses: Gr1N/setup-poetry@v9 with: - poetry-version: "2.0.1" + poetry-version: ${{ steps.tool-versions.outputs.poetry }} - name: Set up Python uses: actions/setup-python@v5 with: diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 000000000..99d980edb --- /dev/null +++ b/.tool-versions @@ -0,0 +1,2 @@ +python 3.11 +poetry 2.0.1