Skip to content

Commit 3b52b3d

Browse files
authored
Merge pull request #878 from sanders41/python-action
Bump setup-python action v5 -> v6
2 parents 343925f + 3b2f5b5 commit 3b52b3d

17 files changed

+47
-47
lines changed

src/github_actions.rs

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
poetry config virtualenvs.create true
4343
poetry config virtualenvs.in-project true
4444
- name: Set up Python
45-
uses: actions/setup-python@v5
45+
uses: actions/setup-python@v6
4646
with:
4747
python-version: ${{{{ env.PYTHON_VERSION }}}}
4848
cache: "poetry"
@@ -69,7 +69,7 @@ jobs:
6969
poetry config virtualenvs.create true
7070
poetry config virtualenvs.in-project true
7171
- name: Set up Python ${{{{ matrix.python-version }}}}
72-
uses: actions/setup-python@v5
72+
uses: actions/setup-python@v6
7373
with:
7474
python-version: ${{{{ matrix.python-version }}}}
7575
cache: "poetry"
@@ -104,7 +104,7 @@ jobs:
104104
steps:
105105
- uses: actions/checkout@v5
106106
- name: Set up Python
107-
uses: actions/setup-python@v5
107+
uses: actions/setup-python@v6
108108
with:
109109
python-version: ${{{{ env.PYTHON_VERSION }}}}
110110
cache: "pip"
@@ -127,7 +127,7 @@ jobs:
127127
steps:
128128
- uses: actions/checkout@v5
129129
- name: Set up Python ${{{{ matrix.python-version }}}}
130-
uses: actions/setup-python@v5
130+
uses: actions/setup-python@v6
131131
with:
132132
python-version: ${{{{ matrix.python-version }}}}
133133
cache: "pip"
@@ -168,7 +168,7 @@ jobs:
168168
with:
169169
enable-cache: true
170170
- name: Set up Python
171-
uses: actions/setup-python@v5
171+
uses: actions/setup-python@v6
172172
with:
173173
python-version: ${{{{ env.PYTHON_VERSION }}}}
174174
- name: Install Dependencies
@@ -192,7 +192,7 @@ jobs:
192192
with:
193193
enable-cache: true
194194
- name: Set up Python ${{{{ matrix.python-version }}}}
195-
uses: actions/setup-python@v5
195+
uses: actions/setup-python@v6
196196
with:
197197
python-version: ${{{{ matrix.python-version }}}}
198198
- name: Install Dependencies
@@ -311,7 +311,7 @@ jobs:
311311
with:
312312
enable-cache: true
313313
- name: Set up Python
314-
uses: actions/setup-python@v5
314+
uses: actions/setup-python@v6
315315
with:
316316
python-version: ${{{{ env.PYTHON_VERSION }}}}
317317
- name: Install Dependencies
@@ -337,7 +337,7 @@ jobs:
337337
with:
338338
enable-cache: true
339339
- name: Set up Python ${{{{ matrix.python-version }}}}
340-
uses: actions/setup-python@v5
340+
uses: actions/setup-python@v6
341341
with:
342342
python-version: ${{{{ matrix.python-version }}}}
343343
- name: Install Dependencies
@@ -391,7 +391,7 @@ jobs:
391391
steps:
392392
- uses: actions/checkout@v5
393393
- name: Set up Python
394-
uses: actions/setup-python@v5
394+
uses: actions/setup-python@v6
395395
with:
396396
python-version: ${{{{ env.PYTHON_VERSION }}}}
397397
cache: "pip"
@@ -416,7 +416,7 @@ jobs:
416416
steps:
417417
- uses: actions/checkout@v5
418418
- name: Set up Python ${{{{ matrix.python-version }}}}
419-
uses: actions/setup-python@v5
419+
uses: actions/setup-python@v6
420420
with:
421421
python-version: ${{{{ matrix.python-version }}}}
422422
cache: "pip"
@@ -505,7 +505,7 @@ jobs:
505505
poetry config virtualenvs.create true
506506
poetry config virtualenvs.in-project true
507507
- name: Set up Python
508-
uses: actions/setup-python@v5
508+
uses: actions/setup-python@v6
509509
with:
510510
python-version: ${{{{ env.PYTHON_VERSION }}}}
511511
cache: "poetry"
@@ -533,7 +533,7 @@ jobs:
533533
poetry config virtualenvs.create true
534534
poetry config virtualenvs.in-project true
535535
- name: Set up Python ${{{{ matrix.python-version }}}}
536-
uses: actions/setup-python@v5
536+
uses: actions/setup-python@v6
537537
with:
538538
python-version: ${{{{ matrix.python-version }}}}
539539
cache: "poetry"
@@ -568,7 +568,7 @@ jobs:
568568
steps:
569569
- uses: actions/checkout@v5
570570
- name: Set up Python
571-
uses: actions/setup-python@v5
571+
uses: actions/setup-python@v6
572572
with:
573573
python-version: ${{{{ env.PYTHON_VERSION }}}}
574574
cache: "pip"
@@ -592,7 +592,7 @@ jobs:
592592
steps:
593593
- uses: actions/checkout@v5
594594
- name: Set up Python ${{{{ matrix.python-version }}}}
595-
uses: actions/setup-python@v5
595+
uses: actions/setup-python@v6
596596
with:
597597
python-version: ${{{{ matrix.python-version }}}}
598598
cache: "pip"
@@ -661,7 +661,7 @@ jobs:
661661
with:
662662
enable-cache: true
663663
- name: Set up Python
664-
uses: actions/setup-python@v5
664+
uses: actions/setup-python@v6
665665
with:
666666
python-version: ${{{{ env.PYTHON_VERSION }}}}
667667
- name: Install Dependencies
@@ -688,7 +688,7 @@ jobs:
688688
with:
689689
enable-cache: true
690690
- name: Set up Python ${{{{ matrix.python-version }}}}
691-
uses: actions/setup-python@v5
691+
uses: actions/setup-python@v6
692692
with:
693693
python-version: ${{{{ matrix.python-version }}}}
694694
- name: Install Dependencies
@@ -742,7 +742,7 @@ jobs:
742742
steps:
743743
- uses: actions/checkout@v5
744744
- name: Set up Python
745-
uses: actions/setup-python@v5
745+
uses: actions/setup-python@v6
746746
with:
747747
python-version: ${{{{ env.PYTHON_VERSION }}}}
748748
cache: "pip"
@@ -768,7 +768,7 @@ jobs:
768768
steps:
769769
- uses: actions/checkout@v5
770770
- name: Set up Python ${{{{ matrix.python-version }}}}
771-
uses: actions/setup-python@v5
771+
uses: actions/setup-python@v6
772772
with:
773773
python-version: ${{{{ matrix.python-version }}}}
774774
cache: "pip"
@@ -813,7 +813,7 @@ jobs:
813813
with:
814814
enable-cache: true
815815
- name: Set up Python
816-
uses: actions/setup-python@v5
816+
uses: actions/setup-python@v6
817817
with:
818818
python-version: ${{{{ env.PYTHON_VERSION }}}}
819819
- name: Install Dependencies
@@ -838,7 +838,7 @@ jobs:
838838
with:
839839
enable-cache: true
840840
- name: Set up Python ${{{{ matrix.python-version }}}}
841-
uses: actions/setup-python@v5
841+
uses: actions/setup-python@v6
842842
with:
843843
python-version: ${{{{ matrix.python-version }}}}
844844
- name: Install Dependencies
@@ -1114,7 +1114,7 @@ jobs:
11141114
- name: Install Poetry
11151115
run: pipx install poetry
11161116
- name: Set up Python
1117-
uses: actions/setup-python@v5
1117+
uses: actions/setup-python@v6
11181118
with:
11191119
python-version: "{python_version}"
11201120
cache: "poetry"
@@ -1144,7 +1144,7 @@ jobs:
11441144
target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]
11451145
steps:
11461146
- uses: actions/checkout@v5
1147-
- uses: actions/setup-python@v5
1147+
- uses: actions/setup-python@v6
11481148
with:
11491149
python-version: "{python_version}"
11501150
- name: Build wheels
@@ -1166,7 +1166,7 @@ jobs:
11661166
target: [x64, x86]
11671167
steps:
11681168
- uses: actions/checkout@v5
1169-
- uses: actions/setup-python@v5
1169+
- uses: actions/setup-python@v6
11701170
with:
11711171
python-version: "{python_version}"
11721172
architecture: ${{{{ matrix.target }}}}
@@ -1188,7 +1188,7 @@ jobs:
11881188
target: [x86_64, aarch64]
11891189
steps:
11901190
- uses: actions/checkout@v5
1191-
- uses: actions/setup-python@v5
1191+
- uses: actions/setup-python@v6
11921192
with:
11931193
python-version: "{python_version}"
11941194
- name: Build wheels
@@ -1206,7 +1206,7 @@ jobs:
12061206
runs-on: ubuntu-latest
12071207
steps:
12081208
- uses: actions/checkout@v5
1209-
- uses: actions/setup-python@v5
1209+
- uses: actions/setup-python@v6
12101210
with:
12111211
python-version: "{python_version}"
12121212
- name: Build sdist
@@ -1229,7 +1229,7 @@ jobs:
12291229
needs: [linux, windows, macos, sdist]
12301230
steps:
12311231
- uses: actions/download-artifact@v4
1232-
- uses: actions/setup-python@v5
1232+
- uses: actions/setup-python@v6
12331233
with:
12341234
python-version: "{python_version}"
12351235
- name: Publish to PyPI
@@ -1257,7 +1257,7 @@ jobs:
12571257
steps:
12581258
- uses: actions/checkout@v5
12591259
- name: Set up Python
1260-
uses: actions/setup-python@v5
1260+
uses: actions/setup-python@v6
12611261
with:
12621262
python-version: "{python_version}"
12631263
cache: "pip"
@@ -1294,7 +1294,7 @@ jobs:
12941294
with:
12951295
enable-cache: true
12961296
- name: Set up Python
1297-
uses: actions/setup-python@v5
1297+
uses: actions/setup-python@v6
12981298
with:
12991299
python-version: "{python_version}"
13001300
- name: Install Dependencies
@@ -1370,7 +1370,7 @@ jobs:
13701370
- name: Install Poetry
13711371
run: pipx install poetry
13721372
- name: Set up Python
1373-
uses: actions/setup-python@v5
1373+
uses: actions/setup-python@v6
13741374
with:
13751375
python-version: "{python_version}"
13761376
cache: "poetry"
@@ -1396,7 +1396,7 @@ jobs:
13961396
steps:
13971397
- uses: actions/checkout@v5
13981398
- name: Set up Python
1399-
uses: actions/setup-python@v5
1399+
uses: actions/setup-python@v6
14001400
with:
14011401
python-version: "{python_version}"
14021402
cache: "pip"
@@ -1451,7 +1451,7 @@ jobs:
14511451
with:
14521452
enable-cache: true
14531453
- name: Set up Python
1454-
uses: actions/setup-python@v5
1454+
uses: actions/setup-python@v6
14551455
with:
14561456
python-version: "{python_version}"
14571457
- name: Install Dependencies

src/snapshots/python_project__github_actions__tests__save_ci_testing_linux_only_file_pyo3.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
source: src/github_actions.rs
33
expression: content
44
---
5-
"name: Testing\n\non:\n push:\n branches:\n - main\n pull_request:\nenv:\n CARGO_TERM_COLOR: always\n RUST_BACKTRACE: 1\n RUSTFLAGS: \"-D warnings\"\n PYTHON_VERSION: \"3.9\"\njobs:\n clippy:\n name: Clippy\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install Rust\n run: |\n curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y\n - name: Cache dependencies\n uses: Swatinem/rust-cache@v2\n - name: Run cargo clippy\n run: cargo clippy --all-targets -- --deny warnings\n fmt:\n name: Rustfmt\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install Rust\n run: |\n curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y\n - name: Cache dependencies\n uses: Swatinem/rust-cache@v2\n - name: Run cargo fmt\n run: cargo fmt --all -- --check\n python-linting:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install uv\n uses: astral-sh/setup-uv@v6\n with:\n enable-cache: true\n - name: Set up Python\n uses: actions/setup-python@v5\n with:\n python-version: ${{ env.PYTHON_VERSION }}\n - name: Install Dependencies\n run: |\n uv sync --frozen\n uv run maturin build\n - name: Ruff format check\n run: uv run ruff format my_project tests --check\n - name: Lint with ruff\n run: uv run ruff check .\n - name: mypy check\n run: uv run mypy my_project tests\n testing:\n strategy:\n fail-fast: false\n matrix:\n python-version: [\"3.9\", \"3.10\", \"3.11\", \"3.12\"]\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install uv\n uses: astral-sh/setup-uv@v6\n with:\n enable-cache: true\n - name: Set up Python ${{ matrix.python-version }}\n uses: actions/setup-python@v5\n with:\n python-version: ${{ matrix.python-version }}\n - name: Install Dependencies\n run: |\n uv sync --frozen\n uv run maturin build\n - name: Test with pytest\n run: uv run pytest\n"
5+
"name: Testing\n\non:\n push:\n branches:\n - main\n pull_request:\nenv:\n CARGO_TERM_COLOR: always\n RUST_BACKTRACE: 1\n RUSTFLAGS: \"-D warnings\"\n PYTHON_VERSION: \"3.9\"\njobs:\n clippy:\n name: Clippy\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install Rust\n run: |\n curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y\n - name: Cache dependencies\n uses: Swatinem/rust-cache@v2\n - name: Run cargo clippy\n run: cargo clippy --all-targets -- --deny warnings\n fmt:\n name: Rustfmt\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install Rust\n run: |\n curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y\n - name: Cache dependencies\n uses: Swatinem/rust-cache@v2\n - name: Run cargo fmt\n run: cargo fmt --all -- --check\n python-linting:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install uv\n uses: astral-sh/setup-uv@v6\n with:\n enable-cache: true\n - name: Set up Python\n uses: actions/setup-python@v6\n with:\n python-version: ${{ env.PYTHON_VERSION }}\n - name: Install Dependencies\n run: |\n uv sync --frozen\n uv run maturin build\n - name: Ruff format check\n run: uv run ruff format my_project tests --check\n - name: Lint with ruff\n run: uv run ruff check .\n - name: mypy check\n run: uv run mypy my_project tests\n testing:\n strategy:\n fail-fast: false\n matrix:\n python-version: [\"3.9\", \"3.10\", \"3.11\", \"3.12\"]\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install uv\n uses: astral-sh/setup-uv@v6\n with:\n enable-cache: true\n - name: Set up Python ${{ matrix.python-version }}\n uses: actions/setup-python@v6\n with:\n python-version: ${{ matrix.python-version }}\n - name: Install Dependencies\n run: |\n uv sync --frozen\n uv run maturin build\n - name: Test with pytest\n run: uv run pytest\n"

src/snapshots/python_project__github_actions__tests__save_ci_testing_multi_os_file_pyo3.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
source: src/github_actions.rs
33
expression: content
44
---
5-
"name: Testing\n\non:\n push:\n branches:\n - main\n pull_request:\nenv:\n CARGO_TERM_COLOR: always\n RUST_BACKTRACE: 1\n RUSTFLAGS: \"-D warnings\"\n PYTHON_VERSION: \"3.9\"\njobs:\n clippy:\n name: Clippy\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install Rust\n run: |\n curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y\n - name: Cache dependencies\n uses: Swatinem/rust-cache@v2\n - name: Run cargo clippy\n run: cargo clippy --all-targets -- --deny warnings\n fmt:\n name: Rustfmt\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install Rust\n run: |\n curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y\n - name: Cache dependencies\n uses: Swatinem/rust-cache@v2\n - name: Run cargo fmt\n run: cargo fmt --all -- --check\n python-linting:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install uv\n uses: astral-sh/setup-uv@v6\n with:\n enable-cache: true\n - name: Set up Python\n uses: actions/setup-python@v5\n with:\n python-version: ${{ env.PYTHON_VERSION }}\n - name: Install Dependencies\n run: |\n uv sync --frozen\n uv run maturin build\n - name: Ruff format check\n run: uv run ruff format my_project tests --check\n - name: Lint with ruff\n run: uv run ruff check .\n - name: mypy check\n run: uv run mypy my_project tests\n testing:\n strategy:\n fail-fast: false\n matrix:\n python-version: [\"3.9\", \"3.10\", \"3.11\", \"3.12\"]\n os: [ubuntu-latest, windows-latest, macos-latest]\n runs-on: ${{ matrix.os }}\n steps:\n - uses: actions/checkout@v5\n - name: Install uv\n uses: astral-sh/setup-uv@v6\n with:\n enable-cache: true\n - name: Set up Python ${{ matrix.python-version }}\n uses: actions/setup-python@v5\n with:\n python-version: ${{ matrix.python-version }}\n - name: Install Dependencies\n run: |\n uv sync --frozen\n uv run maturin build\n - name: Test with pytest\n run: uv run pytest\n"
5+
"name: Testing\n\non:\n push:\n branches:\n - main\n pull_request:\nenv:\n CARGO_TERM_COLOR: always\n RUST_BACKTRACE: 1\n RUSTFLAGS: \"-D warnings\"\n PYTHON_VERSION: \"3.9\"\njobs:\n clippy:\n name: Clippy\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install Rust\n run: |\n curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y\n - name: Cache dependencies\n uses: Swatinem/rust-cache@v2\n - name: Run cargo clippy\n run: cargo clippy --all-targets -- --deny warnings\n fmt:\n name: Rustfmt\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install Rust\n run: |\n curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y\n - name: Cache dependencies\n uses: Swatinem/rust-cache@v2\n - name: Run cargo fmt\n run: cargo fmt --all -- --check\n python-linting:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install uv\n uses: astral-sh/setup-uv@v6\n with:\n enable-cache: true\n - name: Set up Python\n uses: actions/setup-python@v6\n with:\n python-version: ${{ env.PYTHON_VERSION }}\n - name: Install Dependencies\n run: |\n uv sync --frozen\n uv run maturin build\n - name: Ruff format check\n run: uv run ruff format my_project tests --check\n - name: Lint with ruff\n run: uv run ruff check .\n - name: mypy check\n run: uv run mypy my_project tests\n testing:\n strategy:\n fail-fast: false\n matrix:\n python-version: [\"3.9\", \"3.10\", \"3.11\", \"3.12\"]\n os: [ubuntu-latest, windows-latest, macos-latest]\n runs-on: ${{ matrix.os }}\n steps:\n - uses: actions/checkout@v5\n - name: Install uv\n uses: astral-sh/setup-uv@v6\n with:\n enable-cache: true\n - name: Set up Python ${{ matrix.python-version }}\n uses: actions/setup-python@v6\n with:\n python-version: ${{ matrix.python-version }}\n - name: Install Dependencies\n run: |\n uv sync --frozen\n uv run maturin build\n - name: Test with pytest\n run: uv run pytest\n"

src/snapshots/python_project__github_actions__tests__save_docs_publish_file_poetry.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
source: src/github_actions.rs
33
expression: content
44
---
5-
"name: Docs Publish\non:\n release:\n types:\n - published\njobs:\n deploy:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install Poetry\n run: pipx install poetry\n - name: Set up Python\n uses: actions/setup-python@v5\n with:\n python-version: \"3.12\"\n cache: \"poetry\"\n - name: Install Dependencies\n run: |\n poetry install\n - name: Publish package\n run: poetry run mkdocs gh-deploy --force\n"
5+
"name: Docs Publish\non:\n release:\n types:\n - published\njobs:\n deploy:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install Poetry\n run: pipx install poetry\n - name: Set up Python\n uses: actions/setup-python@v6\n with:\n python-version: \"3.12\"\n cache: \"poetry\"\n - name: Install Dependencies\n run: |\n poetry install\n - name: Publish package\n run: poetry run mkdocs gh-deploy --force\n"

src/snapshots/python_project__github_actions__tests__save_docs_publish_file_pyo3.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
source: src/github_actions.rs
33
expression: content
44
---
5-
"name: Docs Publish\non:\n release:\n types:\n - published\njobs:\n deploy:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install uv\n uses: astral-sh/setup-uv@v6\n with:\n enable-cache: true\n - name: Set up Python\n uses: actions/setup-python@v5\n with:\n python-version: \"3.12\"\n - name: Install Dependencies\n run: uv sync --frozen\n - name: Deploy Docs\n run: uv run mkdocs gh-deploy --force\n"
5+
"name: Docs Publish\non:\n release:\n types:\n - published\njobs:\n deploy:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install uv\n uses: astral-sh/setup-uv@v6\n with:\n enable-cache: true\n - name: Set up Python\n uses: actions/setup-python@v6\n with:\n python-version: \"3.12\"\n - name: Install Dependencies\n run: uv sync --frozen\n - name: Deploy Docs\n run: uv run mkdocs gh-deploy --force\n"

0 commit comments

Comments
 (0)