Skip to content

Commit 1f0f49a

Browse files
committed
Merge remote-tracking branch 'origin/main' into install-rust
2 parents 18f20a6 + 3b52b3d commit 1f0f49a

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
@@ -309,7 +309,7 @@ jobs:
309309
with:
310310
enable-cache: true
311311
- name: Set up Python
312-
uses: actions/setup-python@v5
312+
uses: actions/setup-python@v6
313313
with:
314314
python-version: ${{{{ env.PYTHON_VERSION }}}}
315315
- name: Install Dependencies
@@ -335,7 +335,7 @@ jobs:
335335
with:
336336
enable-cache: true
337337
- name: Set up Python ${{{{ matrix.python-version }}}}
338-
uses: actions/setup-python@v5
338+
uses: actions/setup-python@v6
339339
with:
340340
python-version: ${{{{ matrix.python-version }}}}
341341
- name: Install Dependencies
@@ -387,7 +387,7 @@ jobs:
387387
steps:
388388
- uses: actions/checkout@v5
389389
- name: Set up Python
390-
uses: actions/setup-python@v5
390+
uses: actions/setup-python@v6
391391
with:
392392
python-version: ${{{{ env.PYTHON_VERSION }}}}
393393
cache: "pip"
@@ -412,7 +412,7 @@ jobs:
412412
steps:
413413
- uses: actions/checkout@v5
414414
- name: Set up Python ${{{{ matrix.python-version }}}}
415-
uses: actions/setup-python@v5
415+
uses: actions/setup-python@v6
416416
with:
417417
python-version: ${{{{ matrix.python-version }}}}
418418
cache: "pip"
@@ -501,7 +501,7 @@ jobs:
501501
poetry config virtualenvs.create true
502502
poetry config virtualenvs.in-project true
503503
- name: Set up Python
504-
uses: actions/setup-python@v5
504+
uses: actions/setup-python@v6
505505
with:
506506
python-version: ${{{{ env.PYTHON_VERSION }}}}
507507
cache: "poetry"
@@ -529,7 +529,7 @@ jobs:
529529
poetry config virtualenvs.create true
530530
poetry config virtualenvs.in-project true
531531
- name: Set up Python ${{{{ matrix.python-version }}}}
532-
uses: actions/setup-python@v5
532+
uses: actions/setup-python@v6
533533
with:
534534
python-version: ${{{{ matrix.python-version }}}}
535535
cache: "poetry"
@@ -564,7 +564,7 @@ jobs:
564564
steps:
565565
- uses: actions/checkout@v5
566566
- name: Set up Python
567-
uses: actions/setup-python@v5
567+
uses: actions/setup-python@v6
568568
with:
569569
python-version: ${{{{ env.PYTHON_VERSION }}}}
570570
cache: "pip"
@@ -588,7 +588,7 @@ jobs:
588588
steps:
589589
- uses: actions/checkout@v5
590590
- name: Set up Python ${{{{ matrix.python-version }}}}
591-
uses: actions/setup-python@v5
591+
uses: actions/setup-python@v6
592592
with:
593593
python-version: ${{{{ matrix.python-version }}}}
594594
cache: "pip"
@@ -655,7 +655,7 @@ jobs:
655655
with:
656656
enable-cache: true
657657
- name: Set up Python
658-
uses: actions/setup-python@v5
658+
uses: actions/setup-python@v6
659659
with:
660660
python-version: ${{{{ env.PYTHON_VERSION }}}}
661661
- name: Install Dependencies
@@ -682,7 +682,7 @@ jobs:
682682
with:
683683
enable-cache: true
684684
- name: Set up Python ${{{{ matrix.python-version }}}}
685-
uses: actions/setup-python@v5
685+
uses: actions/setup-python@v6
686686
with:
687687
python-version: ${{{{ matrix.python-version }}}}
688688
- name: Install Dependencies
@@ -734,7 +734,7 @@ jobs:
734734
steps:
735735
- uses: actions/checkout@v5
736736
- name: Set up Python
737-
uses: actions/setup-python@v5
737+
uses: actions/setup-python@v6
738738
with:
739739
python-version: ${{{{ env.PYTHON_VERSION }}}}
740740
cache: "pip"
@@ -760,7 +760,7 @@ jobs:
760760
steps:
761761
- uses: actions/checkout@v5
762762
- name: Set up Python ${{{{ matrix.python-version }}}}
763-
uses: actions/setup-python@v5
763+
uses: actions/setup-python@v6
764764
with:
765765
python-version: ${{{{ matrix.python-version }}}}
766766
cache: "pip"
@@ -805,7 +805,7 @@ jobs:
805805
with:
806806
enable-cache: true
807807
- name: Set up Python
808-
uses: actions/setup-python@v5
808+
uses: actions/setup-python@v6
809809
with:
810810
python-version: ${{{{ env.PYTHON_VERSION }}}}
811811
- name: Install Dependencies
@@ -830,7 +830,7 @@ jobs:
830830
with:
831831
enable-cache: true
832832
- name: Set up Python ${{{{ matrix.python-version }}}}
833-
uses: actions/setup-python@v5
833+
uses: actions/setup-python@v6
834834
with:
835835
python-version: ${{{{ matrix.python-version }}}}
836836
- name: Install Dependencies
@@ -1106,7 +1106,7 @@ jobs:
11061106
- name: Install Poetry
11071107
run: pipx install poetry
11081108
- name: Set up Python
1109-
uses: actions/setup-python@v5
1109+
uses: actions/setup-python@v6
11101110
with:
11111111
python-version: "{python_version}"
11121112
cache: "poetry"
@@ -1136,7 +1136,7 @@ jobs:
11361136
target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]
11371137
steps:
11381138
- uses: actions/checkout@v5
1139-
- uses: actions/setup-python@v5
1139+
- uses: actions/setup-python@v6
11401140
with:
11411141
python-version: "{python_version}"
11421142
- name: Build wheels
@@ -1158,7 +1158,7 @@ jobs:
11581158
target: [x64, x86]
11591159
steps:
11601160
- uses: actions/checkout@v5
1161-
- uses: actions/setup-python@v5
1161+
- uses: actions/setup-python@v6
11621162
with:
11631163
python-version: "{python_version}"
11641164
architecture: ${{{{ matrix.target }}}}
@@ -1180,7 +1180,7 @@ jobs:
11801180
target: [x86_64, aarch64]
11811181
steps:
11821182
- uses: actions/checkout@v5
1183-
- uses: actions/setup-python@v5
1183+
- uses: actions/setup-python@v6
11841184
with:
11851185
python-version: "{python_version}"
11861186
- name: Build wheels
@@ -1198,7 +1198,7 @@ jobs:
11981198
runs-on: ubuntu-latest
11991199
steps:
12001200
- uses: actions/checkout@v5
1201-
- uses: actions/setup-python@v5
1201+
- uses: actions/setup-python@v6
12021202
with:
12031203
python-version: "{python_version}"
12041204
- name: Build sdist
@@ -1221,7 +1221,7 @@ jobs:
12211221
needs: [linux, windows, macos, sdist]
12221222
steps:
12231223
- uses: actions/download-artifact@v4
1224-
- uses: actions/setup-python@v5
1224+
- uses: actions/setup-python@v6
12251225
with:
12261226
python-version: "{python_version}"
12271227
- name: Publish to PyPI
@@ -1249,7 +1249,7 @@ jobs:
12491249
steps:
12501250
- uses: actions/checkout@v5
12511251
- name: Set up Python
1252-
uses: actions/setup-python@v5
1252+
uses: actions/setup-python@v6
12531253
with:
12541254
python-version: "{python_version}"
12551255
cache: "pip"
@@ -1286,7 +1286,7 @@ jobs:
12861286
with:
12871287
enable-cache: true
12881288
- name: Set up Python
1289-
uses: actions/setup-python@v5
1289+
uses: actions/setup-python@v6
12901290
with:
12911291
python-version: "{python_version}"
12921292
- name: Install Dependencies
@@ -1362,7 +1362,7 @@ jobs:
13621362
- name: Install Poetry
13631363
run: pipx install poetry
13641364
- name: Set up Python
1365-
uses: actions/setup-python@v5
1365+
uses: actions/setup-python@v6
13661366
with:
13671367
python-version: "{python_version}"
13681368
cache: "poetry"
@@ -1388,7 +1388,7 @@ jobs:
13881388
steps:
13891389
- uses: actions/checkout@v5
13901390
- name: Set up Python
1391-
uses: actions/setup-python@v5
1391+
uses: actions/setup-python@v6
13921392
with:
13931393
python-version: "{python_version}"
13941394
cache: "pip"
@@ -1443,7 +1443,7 @@ jobs:
14431443
with:
14441444
enable-cache: true
14451445
- name: Set up Python
1446-
uses: actions/setup-python@v5
1446+
uses: actions/setup-python@v6
14471447
with:
14481448
python-version: "{python_version}"
14491449
- 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 uses: dtolnay/rust-toolchain@stable\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 uses: dtolnay/rust-toolchain@stable\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 uses: dtolnay/rust-toolchain@stable\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 uses: dtolnay/rust-toolchain@stable\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 uses: dtolnay/rust-toolchain@stable\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 uses: dtolnay/rust-toolchain@stable\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 uses: dtolnay/rust-toolchain@stable\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 uses: dtolnay/rust-toolchain@stable\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)