Skip to content

Commit ec45f6d

Browse files
chore: set up asdf with .tool-versions and use tool-versions-action in workflows
Co-Authored-By: Aaron <AJ> Steers <aj@airbyte.io>
1 parent 3a9d54b commit ec45f6d

12 files changed

Lines changed: 70 additions & 25 deletions

.github/workflows/autofix-command.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,17 @@ jobs:
7272
7373
[1]: ${{ steps.vars.outputs.run-url }}
7474
75+
- name: Get tool versions
76+
uses: marocchino/tool-versions-action@v1
77+
id: tool-versions
7578
- name: Set up Poetry
7679
uses: Gr1N/setup-poetry@v9
7780
with:
78-
poetry-version: "2.0.1"
81+
poetry-version: ${{ steps.tool-versions.outputs.poetry }}
7982
- name: Set up Python
8083
uses: actions/setup-python@v5
8184
with:
82-
python-version: ${{ matrix.python-version }}
85+
python-version: ${{ steps.tool-versions.outputs.python }}
8386
cache: "poetry"
8487
- name: Install dependencies
8588
run: poetry install --all-extras

.github/workflows/connector-tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,13 @@ jobs:
125125
repository: airbytehq/airbyte
126126
ref: master
127127
path: airbyte
128+
- name: Get tool versions
129+
uses: marocchino/tool-versions-action@v1
130+
id: tool-versions
128131
- name: Set up Python
129132
uses: actions/setup-python@v5
130133
with:
131-
python-version: "3.11"
134+
python-version: ${{ steps.tool-versions.outputs.python }}
132135
# Create initial pending status for test report
133136
- name: Create Pending Test Report Status
134137
if: steps.no_changes.outputs.status != 'cancelled'

.github/workflows/pdoc_preview.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,17 @@ jobs:
1313
steps:
1414
- name: Checkout code
1515
uses: actions/checkout@v4
16+
- name: Get tool versions
17+
uses: marocchino/tool-versions-action@v1
18+
id: tool-versions
1619
- name: Set up Poetry
1720
uses: Gr1N/setup-poetry@v9
1821
with:
19-
poetry-version: "2.0.1"
22+
poetry-version: ${{ steps.tool-versions.outputs.poetry }}
2023
- name: Set up Python
2124
uses: actions/setup-python@v5
2225
with:
23-
python-version: "3.10"
26+
python-version: ${{ steps.tool-versions.outputs.python }}
2427
cache: "poetry"
2528

2629
- name: Install dependencies

.github/workflows/pdoc_publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,17 @@ jobs:
3030
steps:
3131
- name: Checkout code
3232
uses: actions/checkout@v4
33+
- name: Get tool versions
34+
uses: marocchino/tool-versions-action@v1
35+
id: tool-versions
3336
- name: Set up Poetry
3437
uses: Gr1N/setup-poetry@v9
3538
with:
36-
poetry-version: "2.0.1"
39+
poetry-version: ${{ steps.tool-versions.outputs.poetry }}
3740
- name: Set up Python
3841
uses: actions/setup-python@v5
3942
with:
40-
python-version: "3.10"
43+
python-version: ${{ steps.tool-versions.outputs.python }}
4144
cache: "poetry"
4245
- name: Setup Pages
4346
uses: actions/configure-pages@v5

.github/workflows/poetry-lock-command.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,17 @@ jobs:
8080
8181
[1]: ${{ steps.vars.outputs.run-url }}
8282
83+
- name: Get tool versions
84+
uses: marocchino/tool-versions-action@v1
85+
id: tool-versions
8386
- name: Set up Poetry
8487
uses: Gr1N/setup-poetry@v9
8588
with:
86-
poetry-version: "2.0.1"
89+
poetry-version: ${{ steps.tool-versions.outputs.poetry }}
8790
- name: Set up Python
8891
uses: actions/setup-python@v5
8992
with:
90-
python-version: ${{ matrix.python-version }}
93+
python-version: ${{ steps.tool-versions.outputs.python }}
9194
cache: "poetry"
9295

9396
# Run `poetry lock`

.github/workflows/pypi_publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,12 @@ jobs:
272272
IS_PRERELEASE: ${{ needs.build.outputs.IS_PRERELEASE }}
273273
runs-on: ubuntu-24.04
274274
steps:
275+
- name: Get tool versions
276+
uses: marocchino/tool-versions-action@v1
277+
id: tool-versions
275278
- uses: actions/setup-python@v5
276279
with:
277-
python-version: "3.10"
280+
python-version: ${{ steps.tool-versions.outputs.python }}
278281
- name: Checkout Airbyte Platform Internal
279282
uses: actions/checkout@v4
280283
with:

.github/workflows/pytest_fast.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ jobs:
1414
- name: Checkout code
1515
uses: actions/checkout@v4
1616

17+
- name: Get tool versions
18+
uses: marocchino/tool-versions-action@v1
19+
id: tool-versions
1720
- name: Set up Poetry
1821
uses: Gr1N/setup-poetry@v9
1922
with:
20-
poetry-version: "2.0.1"
23+
poetry-version: ${{ steps.tool-versions.outputs.poetry }}
2124

2225
- name: Check Poetry lock file is current
2326
run: poetry check
@@ -41,14 +44,17 @@ jobs:
4144
# Common steps:
4245
- name: Checkout code
4346
uses: actions/checkout@v4
47+
- name: Get tool versions
48+
uses: marocchino/tool-versions-action@v1
49+
id: tool-versions
4450
- name: Set up Poetry
4551
uses: Gr1N/setup-poetry@v9
4652
with:
47-
poetry-version: "2.0.1"
53+
poetry-version: ${{ steps.tool-versions.outputs.poetry }}
4854
- name: Set up Python
4955
uses: actions/setup-python@v5
5056
with:
51-
python-version: "3.10"
57+
python-version: ${{ steps.tool-versions.outputs.python }}
5258
cache: "poetry"
5359
- name: Install dependencies
5460
run: poetry install --all-extras

.github/workflows/pytest_matrix.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,20 @@ jobs:
5757
- 'bin/**'
5858
- 'poetry.lock'
5959
- 'pyproject.toml'
60+
- name: Get tool versions
61+
uses: marocchino/tool-versions-action@v1
62+
id: tool-versions
63+
if: steps.changes.outputs.src == 'true'
6064
- name: Set up Poetry
6165
uses: Gr1N/setup-poetry@v9
6266
if: steps.changes.outputs.src == 'true'
6367
with:
64-
poetry-version: "2.0.1"
68+
poetry-version: ${{ steps.tool-versions.outputs.poetry }}
6569
- name: Set up Python
6670
uses: actions/setup-python@v5
6771
if: steps.changes.outputs.src == 'true'
6872
with:
69-
python-version: ${{ matrix.python-version }}
73+
python-version: ${{ steps.tool-versions.outputs.python }}
7074
cache: "poetry"
7175
- name: Install dependencies
7276
if: steps.changes.outputs.src == 'true'

.github/workflows/python_dependency_analysis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,17 @@ jobs:
2121
steps:
2222
- name: Checkout code
2323
uses: actions/checkout@v4
24+
- name: Get tool versions
25+
uses: marocchino/tool-versions-action@v1
26+
id: tool-versions
2427
- name: Set up Python
2528
uses: actions/setup-python@v5
2629
with:
27-
python-version: "3.10"
30+
python-version: ${{ steps.tool-versions.outputs.python }}
2831
- name: Set up Poetry
2932
uses: Gr1N/setup-poetry@v9
3033
with:
31-
poetry-version: "2.0.1"
34+
poetry-version: ${{ steps.tool-versions.outputs.poetry }}
3235
- name: Install dependencies
3336
run: poetry install --all-extras
3437

.github/workflows/python_lint.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,17 @@ jobs:
1414
# Common steps:
1515
- name: Checkout code
1616
uses: actions/checkout@v4
17+
- name: Get tool versions
18+
uses: marocchino/tool-versions-action@v1
19+
id: tool-versions
1720
- name: Set up Poetry
1821
uses: Gr1N/setup-poetry@v9
1922
with:
20-
poetry-version: "2.0.1"
23+
poetry-version: ${{ steps.tool-versions.outputs.poetry }}
2124
- name: Set up Python
2225
uses: actions/setup-python@v5
2326
with:
24-
python-version: "3.10"
27+
python-version: ${{ steps.tool-versions.outputs.python }}
2528
cache: "poetry"
2629
- name: Install dependencies
2730
run: poetry install --all-extras
@@ -37,14 +40,17 @@ jobs:
3740
# Common steps:
3841
- name: Checkout code
3942
uses: actions/checkout@v4
43+
- name: Get tool versions
44+
uses: marocchino/tool-versions-action@v1
45+
id: tool-versions
4046
- name: Set up Poetry
4147
uses: Gr1N/setup-poetry@v9
4248
with:
43-
poetry-version: "1.8.4"
49+
poetry-version: ${{ steps.tool-versions.outputs.poetry }}
4450
- name: Set up Python
4551
uses: actions/setup-python@v5
4652
with:
47-
python-version: "3.10"
53+
python-version: ${{ steps.tool-versions.outputs.python }}
4854
cache: "poetry"
4955
- name: Install dependencies
5056
run: poetry install --all-extras
@@ -60,14 +66,17 @@ jobs:
6066
# Common steps:
6167
- name: Checkout code
6268
uses: actions/checkout@v4
69+
- name: Get tool versions
70+
uses: marocchino/tool-versions-action@v1
71+
id: tool-versions
6372
- name: Set up Poetry
6473
uses: Gr1N/setup-poetry@v9
6574
with:
66-
poetry-version: "1.8.4"
75+
poetry-version: ${{ steps.tool-versions.outputs.poetry }}
6776
- name: Set up Python
6877
uses: actions/setup-python@v5
6978
with:
70-
python-version: "3.10"
79+
python-version: ${{ steps.tool-versions.outputs.python }}
7180
cache: "poetry"
7281
- name: Install dependencies
7382
run: poetry install --all-extras

0 commit comments

Comments
 (0)