Skip to content

Commit a255b85

Browse files
authored
Merge pull request #49 from transloadit/tim/ci-enable-lfs-checkout
ci: fetch Git LFS assets in workflow jobs
2 parents 0d5927d + a167c0b commit a255b85

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ jobs:
1313
matrix:
1414
os: [ubuntu-latest, windows-latest]
1515
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
16+
env:
17+
POETRY_VERSION: "1.8.5"
1618

1719
steps:
1820
- uses: actions/checkout@v4
21+
with:
22+
lfs: true
1923

2024
- uses: actions/setup-node@v4
2125
with:
@@ -30,15 +34,8 @@ jobs:
3034
architecture: x64
3135
cache: 'pip'
3236

33-
- name: Install Poetry (Windows)
34-
if: runner.os == 'Windows'
35-
run: |
36-
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -
37-
echo "$HOME\AppData\Roaming\Python\Scripts" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
38-
39-
- name: Install Poetry (Unix)
40-
if: runner.os != 'Windows'
41-
run: pip install --upgrade poetry
37+
- name: Install Poetry
38+
run: python -m pip install --upgrade "poetry==${{ env.POETRY_VERSION }}"
4239

4340
- name: Install Dependencies
4441
run: poetry install
@@ -95,11 +92,14 @@ jobs:
9592
needs: python
9693
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
9794
env:
95+
POETRY_VERSION: "1.8.5"
9896
PYTHON_SDK_E2E: "1"
9997
TRANSLOADIT_KEY: ${{ secrets.TRANSLOADIT_KEY }}
10098
TRANSLOADIT_SECRET: ${{ secrets.TRANSLOADIT_SECRET }}
10199
steps:
102100
- uses: actions/checkout@v4
101+
with:
102+
lfs: true
103103

104104
- uses: actions/setup-node@v4
105105
with:
@@ -115,7 +115,7 @@ jobs:
115115
cache: 'pip'
116116

117117
- name: Install Poetry
118-
run: pip install --upgrade poetry
118+
run: python -m pip install --upgrade "poetry==${{ env.POETRY_VERSION }}"
119119

120120
- name: Install dependencies
121121
run: poetry install

0 commit comments

Comments
 (0)