Skip to content
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/airbyte-ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,22 @@ jobs:
id: get_short_sha
uses: benjlevesque/short-sha@v2.2

- name: Get tool versions
uses: marocchino/tool-versions-action@v1
id: tool-versions
- name: Install Python
id: install_python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: ${{ steps.tool-versions.outputs.python }}
check-latest: true
update-environment: true

- name: Install Poetry
id: install_poetry
uses: snok/install-poetry@v1
with:
version: 1.8.5
version: ${{ steps.tool-versions.outputs.poetry-1 }}
Comment thread
aaronsteers marked this conversation as resolved.

- name: Install Dependencies
id: install_dependencies
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/auto_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,19 @@ jobs:
steps:
- name: Checkout
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.11"
python-version: ${{ steps.tool-versions.outputs.python }}
check-latest: true
update-environment: true
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.8.5
version: ${{ steps.tool-versions.outputs.poetry-1 }}
Comment thread
aaronsteers marked this conversation as resolved.
- name: Run auto merge
shell: bash
working-directory: airbyte-ci/connectors/auto_merge
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/bump-cdk-version-and-merge-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,18 +152,21 @@ jobs:
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Get tool versions
uses: marocchino/tool-versions-action@v1
id: tool-versions
- name: Install Python
id: install_python
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: ${{ steps.tool-versions.outputs.python }}
check-latest: true
update-environment: true
- name: Install Poetry
id: install_poetry
uses: snok/install-poetry@v1
with:
version: 1.8.5
version: ${{ steps.tool-versions.outputs.poetry-1 }}
Comment thread
aaronsteers marked this conversation as resolved.
- name: Merge the changelog of the connectors
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Automatically provided by GitHub Actions
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/connector-performance-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,18 @@ jobs:
repository: ${{ inputs.repo }}
ref: ${{ inputs.gitref }}
fetch-depth: 0 # This is to fetch the main branch in case we are running on a different branch.
- name: Get tool versions
uses: marocchino/tool-versions-action@v1
id: tool-versions
- name: Install Java
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "21"
java-version: ${{ steps.tool-versions.outputs.java }}
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: ${{ steps.tool-versions.outputs.python }}
check-latest: true
update-environment: true
- name: Install CI scripts
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/connectors_insights.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,17 @@ jobs:
uses: ./.github/actions/get-dagger-engine-image
with:
dagger_engine_image: "registry.dagger.io/engine:v0.9.6"
- 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.11"
python-version: ${{ steps.tool-versions.outputs.python }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.8.5
version: ${{ steps.tool-versions.outputs.poetry-1 }}
Comment thread
aaronsteers marked this conversation as resolved.
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/format-fix-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,18 @@ jobs:
[1]: ${{ steps.job-vars.outputs.run-url }}

# Compare the below to the `format_check.yml` workflow
- name: Get tool versions
uses: marocchino/tool-versions-action@v1
id: tool-versions
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "21"
java-version: ${{ steps.tool-versions.outputs.java }}
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: ${{ steps.tool-versions.outputs.python }}
cache: "pip"
check-latest: true
update-environment: true
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/format_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,18 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Get tool versions
uses: marocchino/tool-versions-action@v1
id: tool-versions
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "21"
java-version: ${{ steps.tool-versions.outputs.java }}
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: ${{ steps.tool-versions.outputs.python }}
cache: "pip"
check-latest: true
update-environment: true
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,13 @@ jobs:
steps:
- name: Checkout Airbyte
uses: actions/checkout@v4
- name: Get tool versions
uses: marocchino/tool-versions-action@v1
id: tool-versions
- uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "21"
java-version: ${{ steps.tool-versions.outputs.java }}
- name: Docker login
# We login to benefit from increased rate limits for docker pulls
# We can't do it on forks as pull_requests events on forks do not have access to GH secrets
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/live_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
id: install_poetry
uses: snok/install-poetry@v1
with:
version: 1.8.5
version: ${{ steps.tool-versions.outputs.poetry-1 }}
Comment thread
aaronsteers marked this conversation as resolved.

- name: Make poetry venv in project
id: poetry_venv
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/publish-bulk-cdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@ jobs:
- name: Checkout Airbyte
uses: actions/checkout@v3

- name: Get tool versions
uses: marocchino/tool-versions-action@v1
id: tool-versions
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "21"
java-version: ${{ steps.tool-versions.outputs.java }}

- name: Docker login
# Some tests use testcontainers which pull images from DockerHub.
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/publish-java-cdk-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,14 @@ jobs:
fi
echo "CDK_VERSION=${cdk_version}" >> $GITHUB_ENV

- name: Get tool versions
uses: marocchino/tool-versions-action@v1
id: tool-versions
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "21"
java-version: ${{ steps.tool-versions.outputs.java }}

- name: Docker login
# Some tests use testcontainers which pull images from DockerHub.
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/regression_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,14 @@ jobs:
runs-on: linux-24.04-large # Custom runner, defined in GitHub org settings
timeout-minutes: 360 # 6 hours
steps:
- name: Get tool versions
uses: marocchino/tool-versions-action@v1
id: tool-versions
- name: Install Python
id: install_python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: ${{ steps.tool-versions.outputs.python }}
check-latest: true
update-environment: true

Expand All @@ -76,7 +79,7 @@ jobs:
id: install_poetry
uses: snok/install-poetry@v1
with:
version: 1.8.5
version: ${{ steps.tool-versions.outputs.poetry-1 }}
Comment thread
aaronsteers marked this conversation as resolved.

- name: Make poetry venv in project
id: poetry_venv
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test-performance-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,18 @@ jobs:
with:
repository: ${{ github.event.inputs.repo }}
ref: ${{ github.event.inputs.gitref }}
- name: Get tool versions
uses: marocchino/tool-versions-action@v1
id: tool-versions
- name: Install Java
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "21"
java-version: ${{ steps.tool-versions.outputs.java }}
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: ${{ steps.tool-versions.outputs.python }}
check-latest: true
update-environment: true
- name: Install CI scripts
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/upload-metadata-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ jobs:
uses: tj-actions/changed-files@v44
with:
files: "airbyte-integrations/connectors/**/metadata.yaml"
- name: Get tool versions
uses: marocchino/tool-versions-action@v1
id: tool-versions
if: steps.changed-files.outputs.any_changed == 'true'
- name: Setup Python 3.10
if: steps.changed-files.outputs.any_changed == 'true'
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: ${{ steps.tool-versions.outputs.python }}
check-latest: true
update-environment: true
- name: Install metadata_service
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/workflow-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ jobs:
- name: checkout repo content
uses: actions/checkout@v3 # checkout the repository content to github runner

- name: Get tool versions
uses: marocchino/tool-versions-action@v1
id: tool-versions
- name: setup python
uses: actions/setup-python@v4
with:
python-version: "3.9.13" # install the python version needed
python-version: ${{ steps.tool-versions.outputs.python }} # install the python version needed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assuming this works with the version bump to 3.11 that you have defined, this all LGTM!


- name: install python packages
run: |
Expand Down
4 changes: 4 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
python 3.11
java 21
poetry 2.0.1
poetry-1 1.8.5