Skip to content

Commit 04d66a9

Browse files
test against all versions + windows version fix
1 parent 25198e4 commit 04d66a9

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/test.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ jobs:
236236
strategy:
237237
fail-fast: false
238238
matrix:
239-
python-version: ['3.10', '3.11'] # Start with 3.10 and 3.11 # , '3.12', '3.13', '3.14']
239+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
240240

241241
container:
242242
image: python:${{ matrix.python-version }}-alpine
@@ -270,7 +270,7 @@ jobs:
270270
strategy:
271271
fail-fast: false
272272
matrix:
273-
python-version: ['3.10', '3.11'] # Start with 3.10 and 3.11 # , '3.12', '3.13', '3.14']
273+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
274274

275275
steps:
276276
- uses: actions/checkout@v4
@@ -306,7 +306,7 @@ jobs:
306306
fail-fast: false
307307
matrix:
308308
os: [ubuntu-latest, macos-latest, windows-latest]
309-
python-version: ['3.10', '3.11'] # Start with 3.10 and 3.11 # , '3.12', '3.13', '3.14']
309+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
310310

311311
steps:
312312
- uses: actions/checkout@v4
@@ -316,10 +316,17 @@ jobs:
316316
with:
317317
python-version: ${{ matrix.python-version }}
318318

319-
- name: Get version
320-
id: get_version
319+
- name: Get version (Unix)
320+
if: runner.os != 'Windows'
321321
run: echo "VERSION=$(cat cloudsmith_cli/data/VERSION)" >> $GITHUB_ENV
322322

323+
- name: Get version (Windows)
324+
if: runner.os == 'Windows'
325+
run: |
326+
$version = Get-Content cloudsmith_cli/data/VERSION -Raw
327+
$version = $version.Trim()
328+
echo "VERSION=$version" >> $env:GITHUB_ENV
329+
323330
- name: Download zipapp artifact
324331
uses: actions/download-artifact@v4
325332
with:

0 commit comments

Comments
 (0)