From 4090fed04c6f466f35cd0e3448edf9f4461e0da9 Mon Sep 17 00:00:00 2001 From: Paul Sanders Date: Wed, 21 Jan 2026 10:24:30 -0500 Subject: [PATCH] Bump actions/checkout v5 -> v6 --- src/github_actions.rs | 108 +++++++++--------- ...ts__save_ci_testing_fastapi_file_pyo3.snap | 2 +- ..._save_ci_testing_linux_only_file_pyo3.snap | 2 +- ...s__save_ci_testing_multi_os_file_pyo3.snap | 2 +- ...b_actions__tests__save_deploy_files-2.snap | 2 +- ...hub_actions__tests__save_deploy_files.snap | 2 +- ..._tests__save_docs_publish_file_poetry.snap | 2 +- ...s__tests__save_docs_publish_file_pyo3.snap | 2 +- ...ts__save_docs_publish_file_setuptools.snap | 2 +- ...ons__tests__save_docs_publish_file_uv.snap | 2 +- ...__save_poetry_ci_testing_fastapi_file.snap | 2 +- ...ave_poetry_ci_testing_linux_only_file.snap | 2 +- ..._save_poetry_ci_testing_multi_os_file.snap | 2 +- ..._tests__save_pypi_publish_file_poetry.snap | 2 +- ...s__tests__save_pypi_publish_file_pyo3.snap | 2 +- ...ts__save_pypi_publish_file_setuptools.snap | 2 +- ...ons__tests__save_pypi_publish_file_uv.snap | 2 +- ...ests__save_setuptools_ci_fastapi_file.snap | 2 +- ...setuptools_ci_testing_linux_only_file.snap | 2 +- ...e_setuptools_ci_testing_multi_os_file.snap | 2 +- ...ests__save_uv_ci_testing_fastapi_file.snap | 2 +- ...s__save_uv_ci_testing_linux_only_file.snap | 2 +- ...sts__save_uv_ci_testing_multi_os_file.snap | 2 +- 23 files changed, 76 insertions(+), 76 deletions(-) diff --git a/src/github_actions.rs b/src/github_actions.rs index 8266b281..d2bc391f 100644 --- a/src/github_actions.rs +++ b/src/github_actions.rs @@ -34,7 +34,7 @@ jobs: linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Poetry run: pipx install poetry - name: Configure poetry @@ -61,7 +61,7 @@ jobs: python-version: [{python_versions}] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Poetry run: pipx install poetry - name: Configure poetry @@ -119,7 +119,7 @@ jobs: linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Rust uses: dtolnay/rust-toolchain@stable - name: Cache dependencies @@ -152,7 +152,7 @@ jobs: python-version: [{python_versions}] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Poetry run: pipx install poetry - name: Configure poetry @@ -197,7 +197,7 @@ jobs: linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python uses: actions/setup-python@v6 with: @@ -220,7 +220,7 @@ jobs: python-version: [{python_versions}] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python ${{{{ matrix.python-version }}}} uses: actions/setup-python@v6 with: @@ -274,7 +274,7 @@ jobs: linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python uses: actions/setup-python@v6 with: @@ -297,7 +297,7 @@ jobs: python-version: [{python_versions}] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Rust uses: dtolnay/rust-toolchain@stable - name: Cache dependencies @@ -344,7 +344,7 @@ jobs: linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install uv uses: astral-sh/setup-uv@v7 with: @@ -368,7 +368,7 @@ jobs: python-version: [{python_versions}] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install uv uses: astral-sh/setup-uv@v7 with: @@ -423,7 +423,7 @@ jobs: linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install uv uses: astral-sh/setup-uv@v7 with: @@ -447,7 +447,7 @@ jobs: python-version: [{python_versions}] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Rust uses: dtolnay/rust-toolchain@stable - name: Cache dependencies @@ -500,7 +500,7 @@ jobs: name: Clippy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -513,7 +513,7 @@ jobs: name: Rustfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -525,7 +525,7 @@ jobs: python-linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install uv uses: astral-sh/setup-uv@v7 with: @@ -551,7 +551,7 @@ jobs: python-version: [{python_versions}] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install uv uses: astral-sh/setup-uv@v7 with: @@ -586,7 +586,7 @@ jobs: name: Clippy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -599,7 +599,7 @@ jobs: name: Rustfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -611,7 +611,7 @@ jobs: python-linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python uses: actions/setup-python@v6 with: @@ -636,7 +636,7 @@ jobs: python-version: [{python_versions}] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python ${{{{ matrix.python-version }}}} uses: actions/setup-python@v6 with: @@ -698,7 +698,7 @@ jobs: name: Clippy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -711,7 +711,7 @@ jobs: name: Rustfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -723,7 +723,7 @@ jobs: python-linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install uv uses: astral-sh/setup-uv@v7 with: @@ -749,7 +749,7 @@ jobs: python-version: [{python_versions}] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Rust uses: dtolnay/rust-toolchain@stable - name: Cache dependencies @@ -810,7 +810,7 @@ jobs: name: Clippy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -823,7 +823,7 @@ jobs: name: Rustfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -835,7 +835,7 @@ jobs: python-linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python uses: actions/setup-python@v6 with: @@ -860,7 +860,7 @@ jobs: python-version: [{python_versions}] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Rust uses: dtolnay/rust-toolchain@stable - name: Cache dependencies @@ -1021,7 +1021,7 @@ jobs: linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Poetry run: pipx install poetry - name: Configure poetry @@ -1049,7 +1049,7 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{{{ matrix.os }}}} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Poetry run: pipx install poetry - name: Configure poetry @@ -1090,7 +1090,7 @@ jobs: linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python uses: actions/setup-python@v6 with: @@ -1114,7 +1114,7 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{{{ matrix.os }}}} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python ${{{{ matrix.python-version }}}} uses: actions/setup-python@v6 with: @@ -1156,7 +1156,7 @@ jobs: name: Clippy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -1169,7 +1169,7 @@ jobs: name: Rustfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -1181,7 +1181,7 @@ jobs: python-linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install uv uses: astral-sh/setup-uv@v7 with: @@ -1208,7 +1208,7 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{{{ matrix.os }}}} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install uv uses: astral-sh/setup-uv@v7 with: @@ -1243,7 +1243,7 @@ jobs: name: Clippy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -1256,7 +1256,7 @@ jobs: name: Rustfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -1268,7 +1268,7 @@ jobs: python-linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python uses: actions/setup-python@v6 with: @@ -1294,7 +1294,7 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{{{ matrix.os }}}} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python ${{{{ matrix.python-version }}}} uses: actions/setup-python@v6 with: @@ -1335,7 +1335,7 @@ jobs: linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install uv uses: astral-sh/setup-uv@v7 with: @@ -1360,7 +1360,7 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{{{ matrix.os }}}} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install uv uses: astral-sh/setup-uv@v7 with: @@ -1580,7 +1580,7 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Poetry run: pipx install poetry - name: Set up Python @@ -1613,7 +1613,7 @@ jobs: matrix: target: [x86_64, x86, aarch64, armv7, s390x, ppc64le] steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - uses: actions/setup-python@v6 with: python-version: "{python_version}" @@ -1635,7 +1635,7 @@ jobs: matrix: target: [x64, x86] steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - uses: actions/setup-python@v6 with: python-version: "{python_version}" @@ -1657,7 +1657,7 @@ jobs: matrix: target: [x86_64, aarch64] steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - uses: actions/setup-python@v6 with: python-version: "{python_version}" @@ -1675,7 +1675,7 @@ jobs: sdist: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - uses: actions/setup-python@v6 with: python-version: "{python_version}" @@ -1725,7 +1725,7 @@ jobs: # For PyPI's trusted publishing. id-token: write steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python uses: actions/setup-python@v6 with: @@ -1758,7 +1758,7 @@ jobs: # For PyPI's trusted publishing. id-token: write steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install uv uses: astral-sh/setup-uv@v7 with: @@ -1817,7 +1817,7 @@ jobs: sudo chown -R $USER:$USER ./data fi - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Create .env file run: | HASHED_PASSWORD=$(openssl passwd -apr1 "${PASSWORD}" | sed 's/\$/\$\$/g') @@ -1888,7 +1888,7 @@ jobs: sudo chown -R $USER:$USER ./data fi - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Create .env file run: | HASHED_PASSWORD=$(openssl passwd -apr1 "${PASSWORD}" | sed 's/\$/\$\$/g') @@ -1968,7 +1968,7 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Poetry run: pipx install poetry - name: Set up Python @@ -1996,7 +1996,7 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python uses: actions/setup-python@v6 with: @@ -2023,7 +2023,7 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install uv uses: astral-sh/setup-uv@v7 with: diff --git a/src/snapshots/python_project__github_actions__tests__save_ci_testing_fastapi_file_pyo3.snap b/src/snapshots/python_project__github_actions__tests__save_ci_testing_fastapi_file_pyo3.snap index b1896284..b41fd15d 100644 --- a/src/snapshots/python_project__github_actions__tests__save_ci_testing_fastapi_file_pyo3.snap +++ b/src/snapshots/python_project__github_actions__tests__save_ci_testing_fastapi_file_pyo3.snap @@ -2,4 +2,4 @@ source: src/github_actions.rs expression: content --- -"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.10\"\n SECRET_KEY: \"someKey\"\n PRODUCTION_MODE: false\n FIRST_SUPERUSER_EMAIL: \"some@email.com\"\n FIRST_SUPERUSER_PASSWORD: \"somePassword1!\"\n FIRST_SUPERUSER_NAME: \"Super User\"\n POSTGRES_HOST: \"127.0.0.1\"\n POSTGRES_USER: \"postgres\"\n POSTGRES_PASSWORD: \"test_password\"\n POSTGRES_DB: \"test_db\"\n VALKEY_HOST: \"127.0.0.1\"\n VALKEY_PASSWORD: \"test_password\"\n MEILISEARCH_HOST: http://127.0.0.1\n STACK_NAME: \"test-stack\"\n DOMAIN: \"127.0.0.1\"\n LOG_LEVEL: \"DEBUG\"\n CI: true\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 with:\n components: clippy\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 with:\n components: rustfmt\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@v7\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.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\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: Install sqlx-cli\n run: cargo install sqlx-cli --no-default-features -F native-tls -F postgres\n - name: Install uv\n uses: astral-sh/setup-uv@v7\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: make .env\n run: touch .env\n - name: Start docker containers\n run: docker compose up db valkey migrations -d\n - name: Test with pytest\n run: uv run pytest -n auto\n" +"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.10\"\n SECRET_KEY: \"someKey\"\n PRODUCTION_MODE: false\n FIRST_SUPERUSER_EMAIL: \"some@email.com\"\n FIRST_SUPERUSER_PASSWORD: \"somePassword1!\"\n FIRST_SUPERUSER_NAME: \"Super User\"\n POSTGRES_HOST: \"127.0.0.1\"\n POSTGRES_USER: \"postgres\"\n POSTGRES_PASSWORD: \"test_password\"\n POSTGRES_DB: \"test_db\"\n VALKEY_HOST: \"127.0.0.1\"\n VALKEY_PASSWORD: \"test_password\"\n MEILISEARCH_HOST: http://127.0.0.1\n STACK_NAME: \"test-stack\"\n DOMAIN: \"127.0.0.1\"\n LOG_LEVEL: \"DEBUG\"\n CI: true\njobs:\n clippy:\n name: Clippy\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\n - name: Install Rust\n uses: dtolnay/rust-toolchain@stable\n with:\n components: clippy\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@v6\n - name: Install Rust\n uses: dtolnay/rust-toolchain@stable\n with:\n components: rustfmt\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@v6\n - name: Install uv\n uses: astral-sh/setup-uv@v7\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.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\n - name: Install Rust\n uses: dtolnay/rust-toolchain@stable\n - name: Cache dependencies\n uses: Swatinem/rust-cache@v2\n - name: Install sqlx-cli\n run: cargo install sqlx-cli --no-default-features -F native-tls -F postgres\n - name: Install uv\n uses: astral-sh/setup-uv@v7\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: make .env\n run: touch .env\n - name: Start docker containers\n run: docker compose up db valkey migrations -d\n - name: Test with pytest\n run: uv run pytest -n auto\n" diff --git a/src/snapshots/python_project__github_actions__tests__save_ci_testing_linux_only_file_pyo3.snap b/src/snapshots/python_project__github_actions__tests__save_ci_testing_linux_only_file_pyo3.snap index 9e2711b5..4abd5b38 100644 --- a/src/snapshots/python_project__github_actions__tests__save_ci_testing_linux_only_file_pyo3.snap +++ b/src/snapshots/python_project__github_actions__tests__save_ci_testing_linux_only_file_pyo3.snap @@ -2,4 +2,4 @@ source: src/github_actions.rs expression: content --- -"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.10\"\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 with:\n components: clippy\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 with:\n components: rustfmt\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@v7\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.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install uv\n uses: astral-sh/setup-uv@v7\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" +"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.10\"\njobs:\n clippy:\n name: Clippy\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\n - name: Install Rust\n uses: dtolnay/rust-toolchain@stable\n with:\n components: clippy\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@v6\n - name: Install Rust\n uses: dtolnay/rust-toolchain@stable\n with:\n components: rustfmt\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@v6\n - name: Install uv\n uses: astral-sh/setup-uv@v7\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.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\n - name: Install uv\n uses: astral-sh/setup-uv@v7\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" diff --git a/src/snapshots/python_project__github_actions__tests__save_ci_testing_multi_os_file_pyo3.snap b/src/snapshots/python_project__github_actions__tests__save_ci_testing_multi_os_file_pyo3.snap index 29581c4a..b5380609 100644 --- a/src/snapshots/python_project__github_actions__tests__save_ci_testing_multi_os_file_pyo3.snap +++ b/src/snapshots/python_project__github_actions__tests__save_ci_testing_multi_os_file_pyo3.snap @@ -2,4 +2,4 @@ source: src/github_actions.rs expression: content --- -"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.10\"\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 with:\n components: clippy\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 with:\n components: rustfmt\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@v7\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.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\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@v7\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" +"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.10\"\njobs:\n clippy:\n name: Clippy\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\n - name: Install Rust\n uses: dtolnay/rust-toolchain@stable\n with:\n components: clippy\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@v6\n - name: Install Rust\n uses: dtolnay/rust-toolchain@stable\n with:\n components: rustfmt\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@v6\n - name: Install uv\n uses: astral-sh/setup-uv@v7\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.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\n os: [ubuntu-latest, windows-latest, macos-latest]\n runs-on: ${{ matrix.os }}\n steps:\n - uses: actions/checkout@v6\n - name: Install uv\n uses: astral-sh/setup-uv@v7\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" diff --git a/src/snapshots/python_project__github_actions__tests__save_deploy_files-2.snap b/src/snapshots/python_project__github_actions__tests__save_deploy_files-2.snap index 06336871..e7518649 100644 --- a/src/snapshots/python_project__github_actions__tests__save_deploy_files-2.snap +++ b/src/snapshots/python_project__github_actions__tests__save_deploy_files-2.snap @@ -2,4 +2,4 @@ source: src/github_actions.rs expression: production_content --- -"name: Deploy to Production\non:\n release:\n types:\n - published\njobs:\n deploy:\n runs-on:\n - self-hosted\n - production\n env:\n ENVIRONMENT: production\n DOMAIN: ${{ secrets.DOMAIN_PRODUCTION }}\n STACK_NAME: ${{ secrets.STACK_NAME_PRODUCTION }}\n SECRET_KEY: ${{ secrets.SECRET_KEY }}\n FIRST_SUPERUSER_EMAIL: ${{ secrets.FIRST_SUPERUSER_EMAIL }}\n FIRST_SUPERUSER_PASSWORD: ${{ secrets.FIRST_SUPERUSER_PASSWORD }}\n FIRST_SUPERUSER_NAME: ${{ secrets.FIRST_SUPERUSER_NAME }}\n POSTGRES_HOST: ${{ secrets.POSTGRES_HOST }}\n POSTGRES_USER: ${{ secrets.POSTGRES_USER }}\n POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}\n POSTGRES_DB: ${{ secrets.POSTGRES_DB }}\n VALKEY_HOST: ${{ secrets.VALKEY_HOST }}\n VALKEY_PASSWORD: ${{ secrets.VALKEY_PASSWORD }}\n USERNAME: ${{ secrets.FIRST_SUPERUSER_EMAIL }}\n PASSWORD: ${{ secrets.FIRST_SUPERUSER_PASSWORD }}\n EMAIL: ${{ secrets.FIRST_SUPERUSER_EMAIL }}\n LOG_LEVEL: \"INFO\"\n steps:\n - name: Fix permissions\n run: |\n if [ -d \"./data\" ]; then\n sudo chown -R $USER:$USER ./data\n fi\n - name: Checkout\n uses: actions/checkout@v5\n - name: Create .env file\n run: |\n HASHED_PASSWORD=$(openssl passwd -apr1 \"${PASSWORD}\" | sed 's/\\$/\\$\\$/g')\n cat > .env << EOF\n ENVIRONMENT=${ENVIRONMENT}\n DOMAIN=${DOMAIN}\n STACK_NAME=${STACK_NAME}\n SECRET_KEY=${SECRET_KEY}\n FIRST_SUPERUSER_EMAIL=${FIRST_SUPERUSER_EMAIL}\n FIRST_SUPERUSER_PASSWORD=${FIRST_SUPERUSER_PASSWORD}\n FIRST_SUPERUSER_NAME=${FIRST_SUPERUSER_NAME}\n POSTGRES_HOST=${POSTGRES_HOST}\n POSTGRES_USER=${POSTGRES_USER}\n POSTGRES_PASSWORD=${POSTGRES_PASSWORD}\n POSTGRES_DB=${POSTGRES_DB}\n VALKEY_HOST=${VALKEY_HOST}\n VALKEY_PASSWORD=${VALKEY_PASSWORD}\n USERNAME=${FIRST_SUPERUSER_EMAIL}\n PASSWORD=${FIRST_SUPERUSER_PASSWORD}\n HASHED_PASSWORD=${HASHED_PASSWORD}\n EMAIL=${FIRST_SUPERUSER_EMAIL}\n LOG_LEVEL=${LOG_LEVEL}\n EOF\n - name: Build and restart containers\n timeout-minutes: 15\n run: |\n docker compose -f docker-compose.yml --project-name ${{ secrets.STACK_NAME_PRODUCTION }} build\n docker compose -f docker-compose.yml --project-name ${{ secrets.STACK_NAME_PRODUCTION }} up -d\n" +"name: Deploy to Production\non:\n release:\n types:\n - published\njobs:\n deploy:\n runs-on:\n - self-hosted\n - production\n env:\n ENVIRONMENT: production\n DOMAIN: ${{ secrets.DOMAIN_PRODUCTION }}\n STACK_NAME: ${{ secrets.STACK_NAME_PRODUCTION }}\n SECRET_KEY: ${{ secrets.SECRET_KEY }}\n FIRST_SUPERUSER_EMAIL: ${{ secrets.FIRST_SUPERUSER_EMAIL }}\n FIRST_SUPERUSER_PASSWORD: ${{ secrets.FIRST_SUPERUSER_PASSWORD }}\n FIRST_SUPERUSER_NAME: ${{ secrets.FIRST_SUPERUSER_NAME }}\n POSTGRES_HOST: ${{ secrets.POSTGRES_HOST }}\n POSTGRES_USER: ${{ secrets.POSTGRES_USER }}\n POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}\n POSTGRES_DB: ${{ secrets.POSTGRES_DB }}\n VALKEY_HOST: ${{ secrets.VALKEY_HOST }}\n VALKEY_PASSWORD: ${{ secrets.VALKEY_PASSWORD }}\n USERNAME: ${{ secrets.FIRST_SUPERUSER_EMAIL }}\n PASSWORD: ${{ secrets.FIRST_SUPERUSER_PASSWORD }}\n EMAIL: ${{ secrets.FIRST_SUPERUSER_EMAIL }}\n LOG_LEVEL: \"INFO\"\n steps:\n - name: Fix permissions\n run: |\n if [ -d \"./data\" ]; then\n sudo chown -R $USER:$USER ./data\n fi\n - name: Checkout\n uses: actions/checkout@v6\n - name: Create .env file\n run: |\n HASHED_PASSWORD=$(openssl passwd -apr1 \"${PASSWORD}\" | sed 's/\\$/\\$\\$/g')\n cat > .env << EOF\n ENVIRONMENT=${ENVIRONMENT}\n DOMAIN=${DOMAIN}\n STACK_NAME=${STACK_NAME}\n SECRET_KEY=${SECRET_KEY}\n FIRST_SUPERUSER_EMAIL=${FIRST_SUPERUSER_EMAIL}\n FIRST_SUPERUSER_PASSWORD=${FIRST_SUPERUSER_PASSWORD}\n FIRST_SUPERUSER_NAME=${FIRST_SUPERUSER_NAME}\n POSTGRES_HOST=${POSTGRES_HOST}\n POSTGRES_USER=${POSTGRES_USER}\n POSTGRES_PASSWORD=${POSTGRES_PASSWORD}\n POSTGRES_DB=${POSTGRES_DB}\n VALKEY_HOST=${VALKEY_HOST}\n VALKEY_PASSWORD=${VALKEY_PASSWORD}\n USERNAME=${FIRST_SUPERUSER_EMAIL}\n PASSWORD=${FIRST_SUPERUSER_PASSWORD}\n HASHED_PASSWORD=${HASHED_PASSWORD}\n EMAIL=${FIRST_SUPERUSER_EMAIL}\n LOG_LEVEL=${LOG_LEVEL}\n EOF\n - name: Build and restart containers\n timeout-minutes: 15\n run: |\n docker compose -f docker-compose.yml --project-name ${{ secrets.STACK_NAME_PRODUCTION }} build\n docker compose -f docker-compose.yml --project-name ${{ secrets.STACK_NAME_PRODUCTION }} up -d\n" diff --git a/src/snapshots/python_project__github_actions__tests__save_deploy_files.snap b/src/snapshots/python_project__github_actions__tests__save_deploy_files.snap index 9df9332c..8aee6aa5 100644 --- a/src/snapshots/python_project__github_actions__tests__save_deploy_files.snap +++ b/src/snapshots/python_project__github_actions__tests__save_deploy_files.snap @@ -2,4 +2,4 @@ source: src/github_actions.rs expression: test_content --- -"name: Deploy to Testing\non:\n push:\n branches:\n - main\n workflow_dispatch:\njobs:\n deploy:\n runs-on:\n - self-hosted\n - testing\n env:\n ENVIRONMENT: testing\n DOMAIN: ${{ secrets.DOMAIN_TESTING }}\n STACK_NAME: ${{ secrets.STACK_NAME_TESTING }}\n SECRET_KEY: ${{ secrets.SECRET_KEY }}\n FIRST_SUPERUSER_EMAIL: ${{ secrets.FIRST_SUPERUSER_EMAIL }}\n FIRST_SUPERUSER_PASSWORD: ${{ secrets.FIRST_SUPERUSER_PASSWORD }}\n FIRST_SUPERUSER_NAME: ${{ secrets.FIRST_SUPERUSER_NAME }}\n POSTGRES_HOST: ${{ secrets.POSTGRES_HOST }}\n POSTGRES_USER: ${{ secrets.POSTGRES_USER }}\n POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}\n POSTGRES_DB: ${{ secrets.POSTGRES_DB }}\n VALKEY_HOST: ${{ secrets.VALKEY_HOST }}\n VALKEY_PASSWORD: ${{ secrets.VALKEY_PASSWORD }}\n HANDWRITING_OCR_TOKEN: ${{ secrets.HANDWRITING_OCR_TOKEN }}\n USERNAME: ${{ secrets.FIRST_SUPERUSER_EMAIL }}\n PASSWORD: ${{ secrets.FIRST_SUPERUSER_PASSWORD }}\n EMAIL: ${{ secrets.FIRST_SUPERUSER_EMAIL }}\n ERROR_NOTIFICATION_URL: ${{ secrets.ERROR_NOTIFICATION_URL_TESTING }}\n LOG_LEVEL: \"DEBUG\"\n steps:\n - name: Fix permissions\n run: |\n if [ -d \"./data\" ]; then\n sudo chown -R $USER:$USER ./data\n fi\n - name: Checkout\n uses: actions/checkout@v5\n - name: Create .env file\n run: |\n HASHED_PASSWORD=$(openssl passwd -apr1 \"${PASSWORD}\" | sed 's/\\$/\\$\\$/g')\n cat > .env << EOF\n ENVIRONMENT=${ENVIRONMENT}\n DOMAIN=${DOMAIN}\n STACK_NAME=${STACK_NAME}\n SECRET_KEY=${SECRET_KEY}\n FIRST_SUPERUSER_EMAIL=${FIRST_SUPERUSER_EMAIL}\n FIRST_SUPERUSER_PASSWORD=${FIRST_SUPERUSER_PASSWORD}\n FIRST_SUPERUSER_NAME=${FIRST_SUPERUSER_NAME}\n POSTGRES_HOST=${POSTGRES_HOST}\n POSTGRES_USER=${POSTGRES_USER}\n POSTGRES_PASSWORD=${POSTGRES_PASSWORD}\n POSTGRES_DB=${POSTGRES_DB}\n VALKEY_HOST=${VALKEY_HOST}\n VALKEY_PASSWORD=${VALKEY_PASSWORD}\n HANDWRITING_OCR_TOKEN=${HANDWRITING_OCR_TOKEN}\n USERNAME=${FIRST_SUPERUSER_EMAIL}\n PASSWORD=${FIRST_SUPERUSER_PASSWORD}\n HASHED_PASSWORD=${HASHED_PASSWORD}\n EMAIL=${FIRST_SUPERUSER_EMAIL}\n ERROR_NOTIFICATION_URL=${ERROR_NOTIFICATION_URL}\n LOG_LEVEL=${LOG_LEVEL}\n EOF\n - name: Build and restart containers\n timeout-minutes: 15\n run: |\n docker compose -f docker-compose.yml --project-name ${{ secrets.STACK_NAME_TESTING }} build\n docker compose -f docker-compose.yml --project-name ${{ secrets.STACK_NAME_TESTING }} up -d\n" +"name: Deploy to Testing\non:\n push:\n branches:\n - main\n workflow_dispatch:\njobs:\n deploy:\n runs-on:\n - self-hosted\n - testing\n env:\n ENVIRONMENT: testing\n DOMAIN: ${{ secrets.DOMAIN_TESTING }}\n STACK_NAME: ${{ secrets.STACK_NAME_TESTING }}\n SECRET_KEY: ${{ secrets.SECRET_KEY }}\n FIRST_SUPERUSER_EMAIL: ${{ secrets.FIRST_SUPERUSER_EMAIL }}\n FIRST_SUPERUSER_PASSWORD: ${{ secrets.FIRST_SUPERUSER_PASSWORD }}\n FIRST_SUPERUSER_NAME: ${{ secrets.FIRST_SUPERUSER_NAME }}\n POSTGRES_HOST: ${{ secrets.POSTGRES_HOST }}\n POSTGRES_USER: ${{ secrets.POSTGRES_USER }}\n POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}\n POSTGRES_DB: ${{ secrets.POSTGRES_DB }}\n VALKEY_HOST: ${{ secrets.VALKEY_HOST }}\n VALKEY_PASSWORD: ${{ secrets.VALKEY_PASSWORD }}\n HANDWRITING_OCR_TOKEN: ${{ secrets.HANDWRITING_OCR_TOKEN }}\n USERNAME: ${{ secrets.FIRST_SUPERUSER_EMAIL }}\n PASSWORD: ${{ secrets.FIRST_SUPERUSER_PASSWORD }}\n EMAIL: ${{ secrets.FIRST_SUPERUSER_EMAIL }}\n ERROR_NOTIFICATION_URL: ${{ secrets.ERROR_NOTIFICATION_URL_TESTING }}\n LOG_LEVEL: \"DEBUG\"\n steps:\n - name: Fix permissions\n run: |\n if [ -d \"./data\" ]; then\n sudo chown -R $USER:$USER ./data\n fi\n - name: Checkout\n uses: actions/checkout@v6\n - name: Create .env file\n run: |\n HASHED_PASSWORD=$(openssl passwd -apr1 \"${PASSWORD}\" | sed 's/\\$/\\$\\$/g')\n cat > .env << EOF\n ENVIRONMENT=${ENVIRONMENT}\n DOMAIN=${DOMAIN}\n STACK_NAME=${STACK_NAME}\n SECRET_KEY=${SECRET_KEY}\n FIRST_SUPERUSER_EMAIL=${FIRST_SUPERUSER_EMAIL}\n FIRST_SUPERUSER_PASSWORD=${FIRST_SUPERUSER_PASSWORD}\n FIRST_SUPERUSER_NAME=${FIRST_SUPERUSER_NAME}\n POSTGRES_HOST=${POSTGRES_HOST}\n POSTGRES_USER=${POSTGRES_USER}\n POSTGRES_PASSWORD=${POSTGRES_PASSWORD}\n POSTGRES_DB=${POSTGRES_DB}\n VALKEY_HOST=${VALKEY_HOST}\n VALKEY_PASSWORD=${VALKEY_PASSWORD}\n HANDWRITING_OCR_TOKEN=${HANDWRITING_OCR_TOKEN}\n USERNAME=${FIRST_SUPERUSER_EMAIL}\n PASSWORD=${FIRST_SUPERUSER_PASSWORD}\n HASHED_PASSWORD=${HASHED_PASSWORD}\n EMAIL=${FIRST_SUPERUSER_EMAIL}\n ERROR_NOTIFICATION_URL=${ERROR_NOTIFICATION_URL}\n LOG_LEVEL=${LOG_LEVEL}\n EOF\n - name: Build and restart containers\n timeout-minutes: 15\n run: |\n docker compose -f docker-compose.yml --project-name ${{ secrets.STACK_NAME_TESTING }} build\n docker compose -f docker-compose.yml --project-name ${{ secrets.STACK_NAME_TESTING }} up -d\n" diff --git a/src/snapshots/python_project__github_actions__tests__save_docs_publish_file_poetry.snap b/src/snapshots/python_project__github_actions__tests__save_docs_publish_file_poetry.snap index 06abe8a9..dfd9c2d0 100644 --- a/src/snapshots/python_project__github_actions__tests__save_docs_publish_file_poetry.snap +++ b/src/snapshots/python_project__github_actions__tests__save_docs_publish_file_poetry.snap @@ -2,4 +2,4 @@ source: src/github_actions.rs expression: content --- -"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" +"name: Docs Publish\non:\n release:\n types:\n - published\njobs:\n deploy:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\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" diff --git a/src/snapshots/python_project__github_actions__tests__save_docs_publish_file_pyo3.snap b/src/snapshots/python_project__github_actions__tests__save_docs_publish_file_pyo3.snap index 7873759a..131bea1f 100644 --- a/src/snapshots/python_project__github_actions__tests__save_docs_publish_file_pyo3.snap +++ b/src/snapshots/python_project__github_actions__tests__save_docs_publish_file_pyo3.snap @@ -2,4 +2,4 @@ source: src/github_actions.rs expression: content --- -"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@v7\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" +"name: Docs Publish\non:\n release:\n types:\n - published\njobs:\n deploy:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\n - name: Install uv\n uses: astral-sh/setup-uv@v7\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" diff --git a/src/snapshots/python_project__github_actions__tests__save_docs_publish_file_setuptools.snap b/src/snapshots/python_project__github_actions__tests__save_docs_publish_file_setuptools.snap index df805ae3..ad5b66ed 100644 --- a/src/snapshots/python_project__github_actions__tests__save_docs_publish_file_setuptools.snap +++ b/src/snapshots/python_project__github_actions__tests__save_docs_publish_file_setuptools.snap @@ -2,4 +2,4 @@ source: src/github_actions.rs expression: content --- -"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: Set up Python\n uses: actions/setup-python@v6\n with:\n python-version: \"3.12\"\n cache: \"pip\"\n - name: Install Dependencies\n run: |\n python -m pip install -U pip\n python -m pip install -r requirements-dev.txt\n - name: Publish docs\n run: mkdocs gh-deploy --force\n" +"name: Docs Publish\non:\n release:\n types:\n - published\njobs:\n deploy:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\n - name: Set up Python\n uses: actions/setup-python@v6\n with:\n python-version: \"3.12\"\n cache: \"pip\"\n - name: Install Dependencies\n run: |\n python -m pip install -U pip\n python -m pip install -r requirements-dev.txt\n - name: Publish docs\n run: mkdocs gh-deploy --force\n" diff --git a/src/snapshots/python_project__github_actions__tests__save_docs_publish_file_uv.snap b/src/snapshots/python_project__github_actions__tests__save_docs_publish_file_uv.snap index 7873759a..131bea1f 100644 --- a/src/snapshots/python_project__github_actions__tests__save_docs_publish_file_uv.snap +++ b/src/snapshots/python_project__github_actions__tests__save_docs_publish_file_uv.snap @@ -2,4 +2,4 @@ source: src/github_actions.rs expression: content --- -"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@v7\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" +"name: Docs Publish\non:\n release:\n types:\n - published\njobs:\n deploy:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\n - name: Install uv\n uses: astral-sh/setup-uv@v7\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" diff --git a/src/snapshots/python_project__github_actions__tests__save_poetry_ci_testing_fastapi_file.snap b/src/snapshots/python_project__github_actions__tests__save_poetry_ci_testing_fastapi_file.snap index 6d24fcf6..b08bb3c7 100644 --- a/src/snapshots/python_project__github_actions__tests__save_poetry_ci_testing_fastapi_file.snap +++ b/src/snapshots/python_project__github_actions__tests__save_poetry_ci_testing_fastapi_file.snap @@ -2,4 +2,4 @@ source: src/github_actions.rs expression: content --- -"name: Testing\n\non:\n push:\n branches:\n - main\n pull_request:\nenv:\n PYTHON_VERSION: \"3.10\"\n SECRET_KEY: \"someKey\"\n PRODUCTION_MODE: false\n FIRST_SUPERUSER_EMAIL: \"some@email.com\"\n FIRST_SUPERUSER_PASSWORD: \"somePassword1!\"\n FIRST_SUPERUSER_NAME: \"Super User\"\n POSTGRES_HOST: \"127.0.0.1\"\n POSTGRES_USER: \"postgres\"\n POSTGRES_PASSWORD: \"test_password\"\n POSTGRES_DB: \"test_db\"\n VALKEY_HOST: \"127.0.0.1\"\n VALKEY_PASSWORD: \"test_password\"\n MEILISEARCH_HOST: http://127.0.0.1\n STACK_NAME: \"test-stack\"\n DOMAIN: \"127.0.0.1\"\n LOG_LEVEL: \"DEBUG\"\n CI: true\njobs:\n linting:\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: Install sqlx-cli\n run: cargo install sqlx-cli --no-default-features -F native-tls -F postgres\n - name: Install Poetry\n run: pipx install poetry\n - name: Configure poetry\n run: |\n poetry config virtualenvs.create true\n poetry config virtualenvs.in-project true\n - name: Set up Python\n uses: actions/setup-python@v6\n with:\n python-version: ${{ env.PYTHON_VERSION }}\n cache: \"poetry\"\n - name: Install Dependencies\n run: poetry install\n - name: Ruff format check\n run: poetry run ruff format my_project tests --check\n - name: Lint with ruff\n run: poetry run ruff check .\n - name: mypy check\n run: poetry run mypy .\n testing:\n strategy:\n fail-fast: false\n matrix:\n python-version: [\"3.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install Poetry\n run: pipx install poetry\n - name: Configure poetry\n run: |\n poetry config virtualenvs.create true\n poetry config virtualenvs.in-project true\n - name: Set up Python ${{ matrix.python-version }}\n uses: actions/setup-python@v6\n with:\n python-version: ${{ matrix.python-version }}\n cache: \"poetry\"\n - name: Install Dependencies\n run: poetry install\n - name: make .env\n run: touch .env\n - name: Start docker containers\n run: docker compose up db valkey migrations -d\n - name: Test with pytest\n run: poetry run pytest -n auto\n" +"name: Testing\n\non:\n push:\n branches:\n - main\n pull_request:\nenv:\n PYTHON_VERSION: \"3.10\"\n SECRET_KEY: \"someKey\"\n PRODUCTION_MODE: false\n FIRST_SUPERUSER_EMAIL: \"some@email.com\"\n FIRST_SUPERUSER_PASSWORD: \"somePassword1!\"\n FIRST_SUPERUSER_NAME: \"Super User\"\n POSTGRES_HOST: \"127.0.0.1\"\n POSTGRES_USER: \"postgres\"\n POSTGRES_PASSWORD: \"test_password\"\n POSTGRES_DB: \"test_db\"\n VALKEY_HOST: \"127.0.0.1\"\n VALKEY_PASSWORD: \"test_password\"\n MEILISEARCH_HOST: http://127.0.0.1\n STACK_NAME: \"test-stack\"\n DOMAIN: \"127.0.0.1\"\n LOG_LEVEL: \"DEBUG\"\n CI: true\njobs:\n linting:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\n - name: Install Rust\n uses: dtolnay/rust-toolchain@stable\n - name: Cache dependencies\n uses: Swatinem/rust-cache@v2\n - name: Install sqlx-cli\n run: cargo install sqlx-cli --no-default-features -F native-tls -F postgres\n - name: Install Poetry\n run: pipx install poetry\n - name: Configure poetry\n run: |\n poetry config virtualenvs.create true\n poetry config virtualenvs.in-project true\n - name: Set up Python\n uses: actions/setup-python@v6\n with:\n python-version: ${{ env.PYTHON_VERSION }}\n cache: \"poetry\"\n - name: Install Dependencies\n run: poetry install\n - name: Ruff format check\n run: poetry run ruff format my_project tests --check\n - name: Lint with ruff\n run: poetry run ruff check .\n - name: mypy check\n run: poetry run mypy .\n testing:\n strategy:\n fail-fast: false\n matrix:\n python-version: [\"3.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\n - name: Install Poetry\n run: pipx install poetry\n - name: Configure poetry\n run: |\n poetry config virtualenvs.create true\n poetry config virtualenvs.in-project true\n - name: Set up Python ${{ matrix.python-version }}\n uses: actions/setup-python@v6\n with:\n python-version: ${{ matrix.python-version }}\n cache: \"poetry\"\n - name: Install Dependencies\n run: poetry install\n - name: make .env\n run: touch .env\n - name: Start docker containers\n run: docker compose up db valkey migrations -d\n - name: Test with pytest\n run: poetry run pytest -n auto\n" diff --git a/src/snapshots/python_project__github_actions__tests__save_poetry_ci_testing_linux_only_file.snap b/src/snapshots/python_project__github_actions__tests__save_poetry_ci_testing_linux_only_file.snap index df7aeded..148c2a94 100644 --- a/src/snapshots/python_project__github_actions__tests__save_poetry_ci_testing_linux_only_file.snap +++ b/src/snapshots/python_project__github_actions__tests__save_poetry_ci_testing_linux_only_file.snap @@ -2,4 +2,4 @@ source: src/github_actions.rs expression: content --- -"name: Testing\n\non:\n push:\n branches:\n - main\n pull_request:\nenv:\n PYTHON_VERSION: \"3.10\"\njobs:\n linting:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install Poetry\n run: pipx install poetry\n - name: Configure poetry\n run: |\n poetry config virtualenvs.create true\n poetry config virtualenvs.in-project true\n - name: Set up Python\n uses: actions/setup-python@v6\n with:\n python-version: ${{ env.PYTHON_VERSION }}\n cache: \"poetry\"\n - name: Install Dependencies\n run: poetry install\n - name: Ruff format check\n run: poetry run ruff format my_project tests --check\n - name: Lint with ruff\n run: poetry run ruff check .\n - name: mypy check\n run: poetry run mypy .\n testing:\n strategy:\n fail-fast: false\n matrix:\n python-version: [\"3.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install Poetry\n run: pipx install poetry\n - name: Configure poetry\n run: |\n poetry config virtualenvs.create true\n poetry config virtualenvs.in-project true\n - name: Set up Python ${{ matrix.python-version }}\n uses: actions/setup-python@v6\n with:\n python-version: ${{ matrix.python-version }}\n cache: \"poetry\"\n - name: Install Dependencies\n run: poetry install\n - name: Test with pytest\n run: poetry run pytest\n" +"name: Testing\n\non:\n push:\n branches:\n - main\n pull_request:\nenv:\n PYTHON_VERSION: \"3.10\"\njobs:\n linting:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\n - name: Install Poetry\n run: pipx install poetry\n - name: Configure poetry\n run: |\n poetry config virtualenvs.create true\n poetry config virtualenvs.in-project true\n - name: Set up Python\n uses: actions/setup-python@v6\n with:\n python-version: ${{ env.PYTHON_VERSION }}\n cache: \"poetry\"\n - name: Install Dependencies\n run: poetry install\n - name: Ruff format check\n run: poetry run ruff format my_project tests --check\n - name: Lint with ruff\n run: poetry run ruff check .\n - name: mypy check\n run: poetry run mypy .\n testing:\n strategy:\n fail-fast: false\n matrix:\n python-version: [\"3.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\n - name: Install Poetry\n run: pipx install poetry\n - name: Configure poetry\n run: |\n poetry config virtualenvs.create true\n poetry config virtualenvs.in-project true\n - name: Set up Python ${{ matrix.python-version }}\n uses: actions/setup-python@v6\n with:\n python-version: ${{ matrix.python-version }}\n cache: \"poetry\"\n - name: Install Dependencies\n run: poetry install\n - name: Test with pytest\n run: poetry run pytest\n" diff --git a/src/snapshots/python_project__github_actions__tests__save_poetry_ci_testing_multi_os_file.snap b/src/snapshots/python_project__github_actions__tests__save_poetry_ci_testing_multi_os_file.snap index dffdefbf..4d852184 100644 --- a/src/snapshots/python_project__github_actions__tests__save_poetry_ci_testing_multi_os_file.snap +++ b/src/snapshots/python_project__github_actions__tests__save_poetry_ci_testing_multi_os_file.snap @@ -2,4 +2,4 @@ source: src/github_actions.rs expression: content --- -"name: Testing\n\non:\n push:\n branches:\n - main\n pull_request:\nenv:\n PYTHON_VERSION: \"3.10\"\njobs:\n linting:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install Poetry\n run: pipx install poetry\n - name: Configure poetry\n run: |\n poetry config virtualenvs.create true\n poetry config virtualenvs.in-project true\n - name: Set up Python\n uses: actions/setup-python@v6\n with:\n python-version: ${{ env.PYTHON_VERSION }}\n cache: \"poetry\"\n - name: Install Dependencies\n run: poetry install\n - name: Ruff format check\n run: poetry run ruff format my_project tests --check\n - name: Lint with ruff\n run: poetry run ruff check .\n - name: mypy check\n run: poetry run mypy .\n testing:\n strategy:\n fail-fast: false\n matrix:\n python-version: [\"3.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\n os: [ubuntu-latest, windows-latest, macos-latest]\n runs-on: ${{ matrix.os }}\n steps:\n - uses: actions/checkout@v5\n - name: Install Poetry\n run: pipx install poetry\n - name: Configure poetry\n run: |\n poetry config virtualenvs.create true\n poetry config virtualenvs.in-project true\n - name: Set up Python ${{ matrix.python-version }}\n uses: actions/setup-python@v6\n with:\n python-version: ${{ matrix.python-version }}\n cache: \"poetry\"\n - name: Install Dependencies\n run: poetry install\n - name: Test with pytest\n run: poetry run pytest\n" +"name: Testing\n\non:\n push:\n branches:\n - main\n pull_request:\nenv:\n PYTHON_VERSION: \"3.10\"\njobs:\n linting:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\n - name: Install Poetry\n run: pipx install poetry\n - name: Configure poetry\n run: |\n poetry config virtualenvs.create true\n poetry config virtualenvs.in-project true\n - name: Set up Python\n uses: actions/setup-python@v6\n with:\n python-version: ${{ env.PYTHON_VERSION }}\n cache: \"poetry\"\n - name: Install Dependencies\n run: poetry install\n - name: Ruff format check\n run: poetry run ruff format my_project tests --check\n - name: Lint with ruff\n run: poetry run ruff check .\n - name: mypy check\n run: poetry run mypy .\n testing:\n strategy:\n fail-fast: false\n matrix:\n python-version: [\"3.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\n os: [ubuntu-latest, windows-latest, macos-latest]\n runs-on: ${{ matrix.os }}\n steps:\n - uses: actions/checkout@v6\n - name: Install Poetry\n run: pipx install poetry\n - name: Configure poetry\n run: |\n poetry config virtualenvs.create true\n poetry config virtualenvs.in-project true\n - name: Set up Python ${{ matrix.python-version }}\n uses: actions/setup-python@v6\n with:\n python-version: ${{ matrix.python-version }}\n cache: \"poetry\"\n - name: Install Dependencies\n run: poetry install\n - name: Test with pytest\n run: poetry run pytest\n" diff --git a/src/snapshots/python_project__github_actions__tests__save_pypi_publish_file_poetry.snap b/src/snapshots/python_project__github_actions__tests__save_pypi_publish_file_poetry.snap index 050e1407..e2c1cb1b 100644 --- a/src/snapshots/python_project__github_actions__tests__save_pypi_publish_file_poetry.snap +++ b/src/snapshots/python_project__github_actions__tests__save_pypi_publish_file_poetry.snap @@ -2,4 +2,4 @@ source: src/github_actions.rs expression: content --- -"name: PyPi 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 publish --build\n" +"name: PyPi Publish\non:\n release:\n types:\n - published\njobs:\n deploy:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\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 publish --build\n" diff --git a/src/snapshots/python_project__github_actions__tests__save_pypi_publish_file_pyo3.snap b/src/snapshots/python_project__github_actions__tests__save_pypi_publish_file_pyo3.snap index 8d7be616..361b1740 100644 --- a/src/snapshots/python_project__github_actions__tests__save_pypi_publish_file_pyo3.snap +++ b/src/snapshots/python_project__github_actions__tests__save_pypi_publish_file_pyo3.snap @@ -2,4 +2,4 @@ source: src/github_actions.rs expression: content --- -"name: PyPi Publish\non:\n release:\n types:\n - published\npermissions:\n contents: read\njobs:\n linux:\n runs-on: ubuntu-latest\n strategy:\n matrix:\n target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]\n steps:\n - uses: actions/checkout@v5\n - uses: actions/setup-python@v6\n with:\n python-version: \"3.12\"\n - name: Build wheels\n uses: PyO3/maturin-action@v1\n with:\n target: ${{ matrix.target }}\n args: --release --out dist --find-interpreter\n sccache: 'true'\n manylinux: auto\n - name: Upload wheels\n uses: actions/upload-artifact@v5\n with:\n name: wheels-linux-${{ matrix.target }}\n path: dist\n windows:\n runs-on: windows-latest\n strategy:\n matrix:\n target: [x64, x86]\n steps:\n - uses: actions/checkout@v5\n - uses: actions/setup-python@v6\n with:\n python-version: \"3.12\"\n architecture: ${{ matrix.target }}\n - name: Build wheels\n uses: PyO3/maturin-action@v1\n with:\n target: ${{ matrix.target }}\n args: --release --out dist --find-interpreter\n sccache: 'true'\n - name: Upload wheels\n uses: actions/upload-artifact@v5\n with:\n name: wheels-windows-${{ matrix.target }}\n path: dist\n macos:\n runs-on: macos-latest\n strategy:\n matrix:\n target: [x86_64, aarch64]\n steps:\n - uses: actions/checkout@v5\n - uses: actions/setup-python@v6\n with:\n python-version: \"3.12\"\n - name: Build wheels\n uses: PyO3/maturin-action@v1\n with:\n target: ${{ matrix.target }}\n args: --release --out dist --find-interpreter\n sccache: 'true'\n - name: Upload wheels\n uses: actions/upload-artifact@v5\n with:\n name: wheels-macos-${{ matrix.target }}\n path: dist\n sdist:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - uses: actions/setup-python@v6\n with:\n python-version: \"3.12\"\n - name: Build sdist\n uses: PyO3/maturin-action@v1\n with:\n command: sdist\n args: --out dist\n - name: Upload sdist\n uses: actions/upload-artifact@v5\n with:\n name: wheels-sdist\n path: dist\n release:\n name: Release\n runs-on: ubuntu-latest\n permissions:\n # For PyPI's trusted publishing.\n id-token: write\n if: \"startsWith(github.ref, 'refs/tags/')\"\n needs: [linux, windows, macos, sdist]\n steps:\n - uses: actions/download-artifact@v6\n - uses: actions/setup-python@v6\n with:\n python-version: \"3.12\"\n - name: Publish to PyPI\n uses: PyO3/maturin-action@v1\n with:\n command: upload\n args: --non-interactive --skip-existing wheels-*/*\n" +"name: PyPi Publish\non:\n release:\n types:\n - published\npermissions:\n contents: read\njobs:\n linux:\n runs-on: ubuntu-latest\n strategy:\n matrix:\n target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]\n steps:\n - uses: actions/checkout@v6\n - uses: actions/setup-python@v6\n with:\n python-version: \"3.12\"\n - name: Build wheels\n uses: PyO3/maturin-action@v1\n with:\n target: ${{ matrix.target }}\n args: --release --out dist --find-interpreter\n sccache: 'true'\n manylinux: auto\n - name: Upload wheels\n uses: actions/upload-artifact@v5\n with:\n name: wheels-linux-${{ matrix.target }}\n path: dist\n windows:\n runs-on: windows-latest\n strategy:\n matrix:\n target: [x64, x86]\n steps:\n - uses: actions/checkout@v6\n - uses: actions/setup-python@v6\n with:\n python-version: \"3.12\"\n architecture: ${{ matrix.target }}\n - name: Build wheels\n uses: PyO3/maturin-action@v1\n with:\n target: ${{ matrix.target }}\n args: --release --out dist --find-interpreter\n sccache: 'true'\n - name: Upload wheels\n uses: actions/upload-artifact@v5\n with:\n name: wheels-windows-${{ matrix.target }}\n path: dist\n macos:\n runs-on: macos-latest\n strategy:\n matrix:\n target: [x86_64, aarch64]\n steps:\n - uses: actions/checkout@v6\n - uses: actions/setup-python@v6\n with:\n python-version: \"3.12\"\n - name: Build wheels\n uses: PyO3/maturin-action@v1\n with:\n target: ${{ matrix.target }}\n args: --release --out dist --find-interpreter\n sccache: 'true'\n - name: Upload wheels\n uses: actions/upload-artifact@v5\n with:\n name: wheels-macos-${{ matrix.target }}\n path: dist\n sdist:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\n - uses: actions/setup-python@v6\n with:\n python-version: \"3.12\"\n - name: Build sdist\n uses: PyO3/maturin-action@v1\n with:\n command: sdist\n args: --out dist\n - name: Upload sdist\n uses: actions/upload-artifact@v5\n with:\n name: wheels-sdist\n path: dist\n release:\n name: Release\n runs-on: ubuntu-latest\n permissions:\n # For PyPI's trusted publishing.\n id-token: write\n if: \"startsWith(github.ref, 'refs/tags/')\"\n needs: [linux, windows, macos, sdist]\n steps:\n - uses: actions/download-artifact@v6\n - uses: actions/setup-python@v6\n with:\n python-version: \"3.12\"\n - name: Publish to PyPI\n uses: PyO3/maturin-action@v1\n with:\n command: upload\n args: --non-interactive --skip-existing wheels-*/*\n" diff --git a/src/snapshots/python_project__github_actions__tests__save_pypi_publish_file_setuptools.snap b/src/snapshots/python_project__github_actions__tests__save_pypi_publish_file_setuptools.snap index 6bf5ac41..2b6963bb 100644 --- a/src/snapshots/python_project__github_actions__tests__save_pypi_publish_file_setuptools.snap +++ b/src/snapshots/python_project__github_actions__tests__save_pypi_publish_file_setuptools.snap @@ -2,4 +2,4 @@ source: src/github_actions.rs expression: content --- -"name: PyPi Publish\non:\n release:\n types:\n - published\njobs:\n deploy:\n runs-on: ubuntu-latest\n permissions:\n # For PyPI's trusted publishing.\n id-token: write\n steps:\n - uses: actions/checkout@v5\n - name: Set up Python\n uses: actions/setup-python@v6\n with:\n python-version: \"3.12\"\n cache: \"pip\"\n - name: Install Dependencies\n run: |\n python -m pip install -U pip\n python -m pip install -r requirements-dev.txt\n python -m pip install build setuptools wheel twine\n - name: Build and publish package\n run: |\n python -m build\n twine upload dist/*\n" +"name: PyPi Publish\non:\n release:\n types:\n - published\njobs:\n deploy:\n runs-on: ubuntu-latest\n permissions:\n # For PyPI's trusted publishing.\n id-token: write\n steps:\n - uses: actions/checkout@v6\n - name: Set up Python\n uses: actions/setup-python@v6\n with:\n python-version: \"3.12\"\n cache: \"pip\"\n - name: Install Dependencies\n run: |\n python -m pip install -U pip\n python -m pip install -r requirements-dev.txt\n python -m pip install build setuptools wheel twine\n - name: Build and publish package\n run: |\n python -m build\n twine upload dist/*\n" diff --git a/src/snapshots/python_project__github_actions__tests__save_pypi_publish_file_uv.snap b/src/snapshots/python_project__github_actions__tests__save_pypi_publish_file_uv.snap index 82b0406e..877af0a7 100644 --- a/src/snapshots/python_project__github_actions__tests__save_pypi_publish_file_uv.snap +++ b/src/snapshots/python_project__github_actions__tests__save_pypi_publish_file_uv.snap @@ -2,4 +2,4 @@ source: src/github_actions.rs expression: content --- -"name: PyPi Publish\non:\n release:\n types:\n - published\njobs:\n deploy:\n runs-on: ubuntu-latest\n permissions:\n # For PyPI's trusted publishing.\n id-token: write\n steps:\n - uses: actions/checkout@v5\n - name: Install uv\n uses: astral-sh/setup-uv@v7\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: Build package\n run: uv build\n - name: Publish package\n run: uv publish\n" +"name: PyPi Publish\non:\n release:\n types:\n - published\njobs:\n deploy:\n runs-on: ubuntu-latest\n permissions:\n # For PyPI's trusted publishing.\n id-token: write\n steps:\n - uses: actions/checkout@v6\n - name: Install uv\n uses: astral-sh/setup-uv@v7\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: Build package\n run: uv build\n - name: Publish package\n run: uv publish\n" diff --git a/src/snapshots/python_project__github_actions__tests__save_setuptools_ci_fastapi_file.snap b/src/snapshots/python_project__github_actions__tests__save_setuptools_ci_fastapi_file.snap index 0f8322ef..3a704eb0 100644 --- a/src/snapshots/python_project__github_actions__tests__save_setuptools_ci_fastapi_file.snap +++ b/src/snapshots/python_project__github_actions__tests__save_setuptools_ci_fastapi_file.snap @@ -2,4 +2,4 @@ source: src/github_actions.rs expression: content --- -"name: Testing\n\non:\n push:\n branches:\n - main\n pull_request:\nenv:\n PYTHON_VERSION: \"3.10\"\n SECRET_KEY: \"someKey\"\n PRODUCTION_MODE: false\n FIRST_SUPERUSER_EMAIL: \"some@email.com\"\n FIRST_SUPERUSER_PASSWORD: \"somePassword1!\"\n FIRST_SUPERUSER_NAME: \"Super User\"\n POSTGRES_HOST: \"127.0.0.1\"\n POSTGRES_USER: \"postgres\"\n POSTGRES_PASSWORD: \"test_password\"\n POSTGRES_DB: \"test_db\"\n VALKEY_HOST: \"127.0.0.1\"\n VALKEY_PASSWORD: \"test_password\"\n MEILISEARCH_HOST: http://127.0.0.1\n STACK_NAME: \"test-stack\"\n DOMAIN: \"127.0.0.1\"\n LOG_LEVEL: \"DEBUG\"\n CI: true\njobs:\n linting:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Set up Python\n uses: actions/setup-python@v6\n with:\n python-version: ${{ env.PYTHON_VERSION }}\n cache: \"pip\"\n - name: Install Dependencies\n run: |\n python -m pip install -U pip\n python -m pip install -r requirements-dev.txt\n - name: Ruff format check\n run: ruff format my_project tests --check\n - name: Lint with ruff\n run: ruff check .\n - name: mypy check\n run: mypy .\n testing:\n strategy:\n fail-fast: false\n matrix:\n python-version: [\"3.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\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: Install sqlx-cli\n run: cargo install sqlx-cli --no-default-features -F native-tls -F postgres\n - name: Set up Python ${{ matrix.python-version }}\n uses: actions/setup-python@v6\n with:\n python-version: ${{ matrix.python-version }}\n cache: \"pip\"\n - name: Install Dependencies\n run: |\n python -m pip install -U pip\n python -m pip install -r requirements-dev.txt\n - name: make .env\n run: touch .env\n - name: Start docker containers\n run: docker compose up db valkey migrations -d\n - name: Test with pytest\n run: python -m pytest -n auto\n" +"name: Testing\n\non:\n push:\n branches:\n - main\n pull_request:\nenv:\n PYTHON_VERSION: \"3.10\"\n SECRET_KEY: \"someKey\"\n PRODUCTION_MODE: false\n FIRST_SUPERUSER_EMAIL: \"some@email.com\"\n FIRST_SUPERUSER_PASSWORD: \"somePassword1!\"\n FIRST_SUPERUSER_NAME: \"Super User\"\n POSTGRES_HOST: \"127.0.0.1\"\n POSTGRES_USER: \"postgres\"\n POSTGRES_PASSWORD: \"test_password\"\n POSTGRES_DB: \"test_db\"\n VALKEY_HOST: \"127.0.0.1\"\n VALKEY_PASSWORD: \"test_password\"\n MEILISEARCH_HOST: http://127.0.0.1\n STACK_NAME: \"test-stack\"\n DOMAIN: \"127.0.0.1\"\n LOG_LEVEL: \"DEBUG\"\n CI: true\njobs:\n linting:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\n - name: Set up Python\n uses: actions/setup-python@v6\n with:\n python-version: ${{ env.PYTHON_VERSION }}\n cache: \"pip\"\n - name: Install Dependencies\n run: |\n python -m pip install -U pip\n python -m pip install -r requirements-dev.txt\n - name: Ruff format check\n run: ruff format my_project tests --check\n - name: Lint with ruff\n run: ruff check .\n - name: mypy check\n run: mypy .\n testing:\n strategy:\n fail-fast: false\n matrix:\n python-version: [\"3.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\n - name: Install Rust\n uses: dtolnay/rust-toolchain@stable\n - name: Cache dependencies\n uses: Swatinem/rust-cache@v2\n - name: Install sqlx-cli\n run: cargo install sqlx-cli --no-default-features -F native-tls -F postgres\n - name: Set up Python ${{ matrix.python-version }}\n uses: actions/setup-python@v6\n with:\n python-version: ${{ matrix.python-version }}\n cache: \"pip\"\n - name: Install Dependencies\n run: |\n python -m pip install -U pip\n python -m pip install -r requirements-dev.txt\n - name: make .env\n run: touch .env\n - name: Start docker containers\n run: docker compose up db valkey migrations -d\n - name: Test with pytest\n run: python -m pytest -n auto\n" diff --git a/src/snapshots/python_project__github_actions__tests__save_setuptools_ci_testing_linux_only_file.snap b/src/snapshots/python_project__github_actions__tests__save_setuptools_ci_testing_linux_only_file.snap index 57b22965..21d4003e 100644 --- a/src/snapshots/python_project__github_actions__tests__save_setuptools_ci_testing_linux_only_file.snap +++ b/src/snapshots/python_project__github_actions__tests__save_setuptools_ci_testing_linux_only_file.snap @@ -2,4 +2,4 @@ source: src/github_actions.rs expression: content --- -"name: Testing\n\non:\n push:\n branches:\n - main\n pull_request:\nenv:\n PYTHON_VERSION: \"3.10\"\njobs:\n linting:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Set up Python\n uses: actions/setup-python@v6\n with:\n python-version: ${{ env.PYTHON_VERSION }}\n cache: \"pip\"\n - name: Install Dependencies\n run: |\n python -m pip install -U pip\n python -m pip install -r requirements-dev.txt\n - name: Ruff format check\n run: ruff format my_project tests --check\n - name: Lint with ruff\n run: ruff check .\n - name: mypy check\n run: mypy .\n testing:\n strategy:\n fail-fast: false\n matrix:\n python-version: [\"3.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Set up Python ${{ matrix.python-version }}\n uses: actions/setup-python@v6\n with:\n python-version: ${{ matrix.python-version }}\n cache: \"pip\"\n - name: Install Dependencies\n run: |\n python -m pip install -U pip\n python -m pip install -r requirements-dev.txt\n - name: Test with pytest\n run: pytest\n" +"name: Testing\n\non:\n push:\n branches:\n - main\n pull_request:\nenv:\n PYTHON_VERSION: \"3.10\"\njobs:\n linting:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\n - name: Set up Python\n uses: actions/setup-python@v6\n with:\n python-version: ${{ env.PYTHON_VERSION }}\n cache: \"pip\"\n - name: Install Dependencies\n run: |\n python -m pip install -U pip\n python -m pip install -r requirements-dev.txt\n - name: Ruff format check\n run: ruff format my_project tests --check\n - name: Lint with ruff\n run: ruff check .\n - name: mypy check\n run: mypy .\n testing:\n strategy:\n fail-fast: false\n matrix:\n python-version: [\"3.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\n - name: Set up Python ${{ matrix.python-version }}\n uses: actions/setup-python@v6\n with:\n python-version: ${{ matrix.python-version }}\n cache: \"pip\"\n - name: Install Dependencies\n run: |\n python -m pip install -U pip\n python -m pip install -r requirements-dev.txt\n - name: Test with pytest\n run: pytest\n" diff --git a/src/snapshots/python_project__github_actions__tests__save_setuptools_ci_testing_multi_os_file.snap b/src/snapshots/python_project__github_actions__tests__save_setuptools_ci_testing_multi_os_file.snap index 3d168196..e006939b 100644 --- a/src/snapshots/python_project__github_actions__tests__save_setuptools_ci_testing_multi_os_file.snap +++ b/src/snapshots/python_project__github_actions__tests__save_setuptools_ci_testing_multi_os_file.snap @@ -2,4 +2,4 @@ source: src/github_actions.rs expression: content --- -"name: Testing\n\non:\n push:\n branches:\n - main\n pull_request:\nenv:\n PYTHON_VERSION: \"3.10\"\njobs:\n linting:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Set up Python\n uses: actions/setup-python@v6\n with:\n python-version: ${{ env.PYTHON_VERSION }}\n cache: \"pip\"\n - name: Install Dependencies\n run: |\n python -m pip install -U pip\n python -m pip install -r requirements-dev.txt\n - name: Ruff format check\n run: ruff format my_project tests --check\n - name: Lint with ruff\n run: ruff check .\n - name: mypy check\n run: mypy .\n testing:\n strategy:\n fail-fast: false\n matrix:\n python-version: [\"3.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\n os: [ubuntu-latest, windows-latest, macos-latest]\n runs-on: ${{ matrix.os }}\n steps:\n - uses: actions/checkout@v5\n - name: Set up Python ${{ matrix.python-version }}\n uses: actions/setup-python@v6\n with:\n python-version: ${{ matrix.python-version }}\n cache: \"pip\"\n - name: Install Dependencies\n run: |\n python -m pip install -U pip\n python -m pip install -r requirements-dev.txt\n - name: Test with pytest\n run: pytest\n" +"name: Testing\n\non:\n push:\n branches:\n - main\n pull_request:\nenv:\n PYTHON_VERSION: \"3.10\"\njobs:\n linting:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\n - name: Set up Python\n uses: actions/setup-python@v6\n with:\n python-version: ${{ env.PYTHON_VERSION }}\n cache: \"pip\"\n - name: Install Dependencies\n run: |\n python -m pip install -U pip\n python -m pip install -r requirements-dev.txt\n - name: Ruff format check\n run: ruff format my_project tests --check\n - name: Lint with ruff\n run: ruff check .\n - name: mypy check\n run: mypy .\n testing:\n strategy:\n fail-fast: false\n matrix:\n python-version: [\"3.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\n os: [ubuntu-latest, windows-latest, macos-latest]\n runs-on: ${{ matrix.os }}\n steps:\n - uses: actions/checkout@v6\n - name: Set up Python ${{ matrix.python-version }}\n uses: actions/setup-python@v6\n with:\n python-version: ${{ matrix.python-version }}\n cache: \"pip\"\n - name: Install Dependencies\n run: |\n python -m pip install -U pip\n python -m pip install -r requirements-dev.txt\n - name: Test with pytest\n run: pytest\n" diff --git a/src/snapshots/python_project__github_actions__tests__save_uv_ci_testing_fastapi_file.snap b/src/snapshots/python_project__github_actions__tests__save_uv_ci_testing_fastapi_file.snap index 9f205516..c1ef838e 100644 --- a/src/snapshots/python_project__github_actions__tests__save_uv_ci_testing_fastapi_file.snap +++ b/src/snapshots/python_project__github_actions__tests__save_uv_ci_testing_fastapi_file.snap @@ -2,4 +2,4 @@ source: src/github_actions.rs expression: content --- -"name: Testing\n\non:\n push:\n branches:\n - main\n pull_request:\nenv:\n PYTHON_VERSION: \"3.10\"\n SECRET_KEY: \"someKey\"\n PRODUCTION_MODE: false\n FIRST_SUPERUSER_EMAIL: \"some@email.com\"\n FIRST_SUPERUSER_PASSWORD: \"somePassword1!\"\n FIRST_SUPERUSER_NAME: \"Super User\"\n POSTGRES_HOST: \"127.0.0.1\"\n POSTGRES_USER: \"postgres\"\n POSTGRES_PASSWORD: \"test_password\"\n POSTGRES_DB: \"test_db\"\n VALKEY_HOST: \"127.0.0.1\"\n VALKEY_PASSWORD: \"test_password\"\n MEILISEARCH_HOST: http://127.0.0.1\n STACK_NAME: \"test-stack\"\n DOMAIN: \"127.0.0.1\"\n LOG_LEVEL: \"DEBUG\"\n CI: true\njobs:\n linting:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install uv\n uses: astral-sh/setup-uv@v7\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: uv sync --frozen\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 .\n testing:\n strategy:\n fail-fast: false\n matrix:\n python-version: [\"3.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\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: Install sqlx-cli\n run: cargo install sqlx-cli --no-default-features -F native-tls -F postgres\n - name: Install uv\n uses: astral-sh/setup-uv@v7\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: uv sync --frozen\n - name: make .env\n run: touch .env\n - name: Start docker containers\n run: docker compose up db valkey migrations -d\n - name: Test with pytest\n run: uv run pytest -n auto\n" +"name: Testing\n\non:\n push:\n branches:\n - main\n pull_request:\nenv:\n PYTHON_VERSION: \"3.10\"\n SECRET_KEY: \"someKey\"\n PRODUCTION_MODE: false\n FIRST_SUPERUSER_EMAIL: \"some@email.com\"\n FIRST_SUPERUSER_PASSWORD: \"somePassword1!\"\n FIRST_SUPERUSER_NAME: \"Super User\"\n POSTGRES_HOST: \"127.0.0.1\"\n POSTGRES_USER: \"postgres\"\n POSTGRES_PASSWORD: \"test_password\"\n POSTGRES_DB: \"test_db\"\n VALKEY_HOST: \"127.0.0.1\"\n VALKEY_PASSWORD: \"test_password\"\n MEILISEARCH_HOST: http://127.0.0.1\n STACK_NAME: \"test-stack\"\n DOMAIN: \"127.0.0.1\"\n LOG_LEVEL: \"DEBUG\"\n CI: true\njobs:\n linting:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\n - name: Install uv\n uses: astral-sh/setup-uv@v7\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: uv sync --frozen\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 .\n testing:\n strategy:\n fail-fast: false\n matrix:\n python-version: [\"3.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\n - name: Install Rust\n uses: dtolnay/rust-toolchain@stable\n - name: Cache dependencies\n uses: Swatinem/rust-cache@v2\n - name: Install sqlx-cli\n run: cargo install sqlx-cli --no-default-features -F native-tls -F postgres\n - name: Install uv\n uses: astral-sh/setup-uv@v7\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: uv sync --frozen\n - name: make .env\n run: touch .env\n - name: Start docker containers\n run: docker compose up db valkey migrations -d\n - name: Test with pytest\n run: uv run pytest -n auto\n" diff --git a/src/snapshots/python_project__github_actions__tests__save_uv_ci_testing_linux_only_file.snap b/src/snapshots/python_project__github_actions__tests__save_uv_ci_testing_linux_only_file.snap index 9ccef049..3f83cc75 100644 --- a/src/snapshots/python_project__github_actions__tests__save_uv_ci_testing_linux_only_file.snap +++ b/src/snapshots/python_project__github_actions__tests__save_uv_ci_testing_linux_only_file.snap @@ -2,4 +2,4 @@ source: src/github_actions.rs expression: content --- -"name: Testing\n\non:\n push:\n branches:\n - main\n pull_request:\nenv:\n PYTHON_VERSION: \"3.10\"\njobs:\n linting:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install uv\n uses: astral-sh/setup-uv@v7\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: uv sync --frozen\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 .\n testing:\n strategy:\n fail-fast: false\n matrix:\n python-version: [\"3.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install uv\n uses: astral-sh/setup-uv@v7\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: uv sync --frozen\n - name: Test with pytest\n run: uv run pytest\n" +"name: Testing\n\non:\n push:\n branches:\n - main\n pull_request:\nenv:\n PYTHON_VERSION: \"3.10\"\njobs:\n linting:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\n - name: Install uv\n uses: astral-sh/setup-uv@v7\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: uv sync --frozen\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 .\n testing:\n strategy:\n fail-fast: false\n matrix:\n python-version: [\"3.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\n - name: Install uv\n uses: astral-sh/setup-uv@v7\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: uv sync --frozen\n - name: Test with pytest\n run: uv run pytest\n" diff --git a/src/snapshots/python_project__github_actions__tests__save_uv_ci_testing_multi_os_file.snap b/src/snapshots/python_project__github_actions__tests__save_uv_ci_testing_multi_os_file.snap index 1822d1da..39325115 100644 --- a/src/snapshots/python_project__github_actions__tests__save_uv_ci_testing_multi_os_file.snap +++ b/src/snapshots/python_project__github_actions__tests__save_uv_ci_testing_multi_os_file.snap @@ -2,4 +2,4 @@ source: src/github_actions.rs expression: content --- -"name: Testing\n\non:\n push:\n branches:\n - main\n pull_request:\nenv:\n UV_CACHE_DIR: /tmp/.uv-cache\n PYTHON_VERSION: \"3.10\"\njobs:\n linting:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Install uv\n uses: astral-sh/setup-uv@v7\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: uv sync --frozen\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 .\n testing:\n strategy:\n fail-fast: false\n matrix:\n python-version: [\"3.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\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@v7\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: uv sync --frozen\n - name: Test with pytest\n run: uv run pytest\n" +"name: Testing\n\non:\n push:\n branches:\n - main\n pull_request:\nenv:\n UV_CACHE_DIR: /tmp/.uv-cache\n PYTHON_VERSION: \"3.10\"\njobs:\n linting:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v6\n - name: Install uv\n uses: astral-sh/setup-uv@v7\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: uv sync --frozen\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 .\n testing:\n strategy:\n fail-fast: false\n matrix:\n python-version: [\"3.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\n os: [ubuntu-latest, windows-latest, macos-latest]\n runs-on: ${{ matrix.os }}\n steps:\n - uses: actions/checkout@v6\n - name: Install uv\n uses: astral-sh/setup-uv@v7\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: uv sync --frozen\n - name: Test with pytest\n run: uv run pytest\n"