Skip to content

Commit d51b95e

Browse files
pedro-psbclaude
andcommitted
fix(ci): update deprecated actions and fix OS naming consistency
- Update EnricoMi/publish-unit-test-result-action v1 → v2 - Update peter-evans/create-pull-request v3 → v7 - Standardize astral-sh/setup-uv to v6 across all workflows - Standardize actions/checkout to v4 and actions/setup-python to v5 - Fix OS parameter casing: Windows/Linux/macOS → windows/linux/macos - Fix macOS runner OS name mapping in test workflows Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent aa7c1fa commit d51b95e

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

.github/actions/install-from-artifact/action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ inputs:
1010
required: false
1111
default: ''
1212
os:
13-
description: 'Operating system (Windows, Linux, macOS)'
13+
description: 'Operating system (windows, linux, macos)'
1414
required: false
15-
default: 'Linux'
15+
default: 'linux'
1616
python-version:
1717
description: 'Python version to use'
1818
required: false
@@ -29,12 +29,12 @@ runs:
2929
uses: astral-sh/setup-uv@v6
3030

3131
- name: Upgrade PIP
32-
if: inputs.os != 'Windows'
32+
if: inputs.os != 'windows'
3333
shell: bash
3434
run: pip install --user --upgrade pip
3535

3636
- name: Upgrade PIP (Windows)
37-
if: inputs.os == 'Windows'
37+
if: inputs.os == 'windows'
3838
shell: bash
3939
run: python.exe -m pip install --user --upgrade pip
4040

@@ -45,7 +45,7 @@ runs:
4545
path: dist/
4646

4747
- name: Install from wheel (Unix)
48-
if: inputs.os != 'Windows'
48+
if: inputs.os != 'windows'
4949
shell: bash
5050
run: |
5151
PACKAGE=$(ls dist/*.whl)
@@ -57,7 +57,7 @@ runs:
5757
fi
5858
5959
- name: Install from wheel (Windows)
60-
if: inputs.os == 'Windows'
60+
if: inputs.os == 'windows'
6161
shell: pwsh
6262
run: |
6363
$PACKAGE = (Get-ChildItem dist/*.whl).FullName

.github/workflows/main/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
git fetch upstream
1919
2020
- name: Install uv
21-
uses: astral-sh/setup-uv@v3
21+
uses: astral-sh/setup-uv@v6
2222
with:
2323
version: "latest"
2424

.github/workflows/main/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
inputs:
66
python_version:
77
description: "Python version to use for building"
8-
required: true
8+
required: false
99
type: string
1010
default: "3.9"
1111
artifact_out:

.github/workflows/main/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
with:
3939
artifact_in: ${{ inputs.artifact_in }}
4040
python-version: ${{ matrix.python-version }}
41-
os: ${{ runner.os }}
41+
os: ${{ runner.os == 'Linux' && 'linux' || runner.os == 'macOS' && 'macos' || 'windows' }}
4242
- name: Install project and test cli
4343
run: |
4444
dynaconf init -v FOO=running_on_ci -y
@@ -67,7 +67,7 @@ jobs:
6767
- name: Run tests
6868
run: make citest
6969
- name: Publish Junit Test Results
70-
uses: EnricoMi/publish-unit-test-result-action@v1
70+
uses: EnricoMi/publish-unit-test-result-action@v2
7171
continue-on-error: true
7272
if: always()
7373
with:
@@ -122,7 +122,7 @@ jobs:
122122
artifact_in: ${{ inputs.artifact_in }}
123123
python-version: ${{ matrix.python-version }}
124124
dependencies: test
125-
os: linux
125+
os: ${{ matrix.os == 'macos-latest' && 'macos' || 'linux' }}
126126
- name: Run functional tests
127127
run: make test_functional
128128

.github/workflows/scheduled/update-contributors.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ jobs:
2222
DIFF_STAT=$(git diff --stat | tail -1 | xargs) # xargs trims leading spaces
2323
EXPECTED="1 file changed, 1 insertion(+), 1 deletion(-)"
2424
if [ "$DIFF_STAT" = "$EXPECTED" ]; then
25-
echo "skip_pr=true" >> $GITHUB_OUTPUT
25+
echo "skip_pr=true" >> "$GITHUB_OUTPUT"
2626
else
27-
echo "skip_pr=false" >> $GITHUB_OUTPUT
27+
echo "skip_pr=false" >> "$GITHUB_OUTPUT"
2828
fi
2929
3030
- name: Create a PR
3131
if: steps.check_diff.outputs.skip_pr == 'false'
32-
uses: peter-evans/create-pull-request@v3
32+
uses: peter-evans/create-pull-request@v7
3333
with:
3434
commit-message: Update Contributors
3535
title: "[automated] Update Contributors File"

.github/workflows/smoke/test-smoke.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ jobs:
77
test:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/setup-python@v6
10+
- uses: actions/setup-python@v5
1111
with:
1212
python-version: "3.11"
1313

14-
- uses: actions/checkout@v5
14+
- uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717

1818
- name: Checkout galaxy
19-
uses: actions/checkout@v5
19+
uses: actions/checkout@v4
2020
with:
2121
repository: ansible/galaxy_ng
2222
path: galaxy_repo

0 commit comments

Comments
 (0)