diff --git a/src/github_actions.rs b/src/github_actions.rs index a639ee42..ef0cdd45 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@v6 + - uses: actions/checkout@v7 - name: Set up Python uses: actions/setup-python@v6 with: @@ -57,7 +57,7 @@ jobs: python-version: [{python_versions}] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Set up Python ${{{{ matrix.python-version }}}} uses: actions/setup-python@v6 with: @@ -111,7 +111,7 @@ jobs: linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Set up Python uses: actions/setup-python@v6 with: @@ -134,7 +134,7 @@ jobs: python-version: [{python_versions}] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install Rust uses: dtolnay/rust-toolchain@stable - name: Cache dependencies @@ -181,9 +181,9 @@ jobs: linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install uv - uses: astral-sh/setup-uv@v7 + uses: astral-sh/setup-uv@v8 with: enable-cache: true - name: Set up Python @@ -205,9 +205,9 @@ jobs: python-version: [{python_versions}] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install uv - uses: astral-sh/setup-uv@v7 + uses: astral-sh/setup-uv@v8 with: enable-cache: true - name: Set up Python ${{{{ matrix.python-version }}}} @@ -260,9 +260,9 @@ jobs: linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install uv - uses: astral-sh/setup-uv@v7 + uses: astral-sh/setup-uv@v8 with: enable-cache: true - name: Set up Python @@ -284,7 +284,7 @@ jobs: python-version: [{python_versions}] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install Rust uses: dtolnay/rust-toolchain@stable - name: Cache dependencies @@ -292,7 +292,7 @@ jobs: - name: Install sqlx-cli run: cargo install sqlx-cli --no-default-features -F native-tls -F postgres - name: Install uv - uses: astral-sh/setup-uv@v7 + uses: astral-sh/setup-uv@v8 with: enable-cache: true - name: Set up Python ${{{{ matrix.python-version }}}} @@ -337,7 +337,7 @@ jobs: name: Clippy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -350,7 +350,7 @@ jobs: name: Rustfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -362,9 +362,9 @@ jobs: python-linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install uv - uses: astral-sh/setup-uv@v7 + uses: astral-sh/setup-uv@v8 with: enable-cache: true - name: Set up Python @@ -388,9 +388,9 @@ jobs: python-version: [{python_versions}] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install uv - uses: astral-sh/setup-uv@v7 + uses: astral-sh/setup-uv@v8 with: enable-cache: true - name: Set up Python ${{{{ matrix.python-version }}}} @@ -423,7 +423,7 @@ jobs: name: Clippy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -436,7 +436,7 @@ jobs: name: Rustfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -448,7 +448,7 @@ jobs: python-linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Set up Python uses: actions/setup-python@v6 with: @@ -473,7 +473,7 @@ jobs: python-version: [{python_versions}] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Set up Python ${{{{ matrix.python-version }}}} uses: actions/setup-python@v6 with: @@ -535,7 +535,7 @@ jobs: name: Clippy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -548,7 +548,7 @@ jobs: name: Rustfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -560,9 +560,9 @@ jobs: python-linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install uv - uses: astral-sh/setup-uv@v7 + uses: astral-sh/setup-uv@v8 with: enable-cache: true - name: Set up Python @@ -586,7 +586,7 @@ jobs: python-version: [{python_versions}] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install Rust uses: dtolnay/rust-toolchain@stable - name: Cache dependencies @@ -594,7 +594,7 @@ jobs: - name: Install sqlx-cli run: cargo install sqlx-cli --no-default-features -F native-tls -F postgres - name: Install uv - uses: astral-sh/setup-uv@v7 + uses: astral-sh/setup-uv@v8 with: enable-cache: true - name: Set up Python ${{{{ matrix.python-version }}}} @@ -647,7 +647,7 @@ jobs: name: Clippy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -660,7 +660,7 @@ jobs: name: Rustfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -672,7 +672,7 @@ jobs: python-linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Set up Python uses: actions/setup-python@v6 with: @@ -697,7 +697,7 @@ jobs: python-version: [{python_versions}] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install Rust uses: dtolnay/rust-toolchain@stable - name: Cache dependencies @@ -835,7 +835,7 @@ jobs: linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Set up Python uses: actions/setup-python@v6 with: @@ -859,7 +859,7 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{{{ matrix.os }}}} steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Set up Python ${{{{ matrix.python-version }}}} uses: actions/setup-python@v6 with: @@ -901,7 +901,7 @@ jobs: name: Clippy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -914,7 +914,7 @@ jobs: name: Rustfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -926,9 +926,9 @@ jobs: python-linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install uv - uses: astral-sh/setup-uv@v7 + uses: astral-sh/setup-uv@v8 with: enable-cache: true - name: Set up Python @@ -953,9 +953,9 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{{{ matrix.os }}}} steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install uv - uses: astral-sh/setup-uv@v7 + uses: astral-sh/setup-uv@v8 with: enable-cache: true - name: Set up Python ${{{{ matrix.python-version }}}} @@ -988,7 +988,7 @@ jobs: name: Clippy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -1001,7 +1001,7 @@ jobs: name: Rustfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -1013,7 +1013,7 @@ jobs: python-linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Set up Python uses: actions/setup-python@v6 with: @@ -1039,7 +1039,7 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{{{ matrix.os }}}} steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Set up Python ${{{{ matrix.python-version }}}} uses: actions/setup-python@v6 with: @@ -1080,9 +1080,9 @@ jobs: linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install uv - uses: astral-sh/setup-uv@v7 + uses: astral-sh/setup-uv@v8 with: enable-cache: true - name: Set up Python @@ -1105,9 +1105,9 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{{{ matrix.os }}}} steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install uv - uses: astral-sh/setup-uv@v7 + uses: astral-sh/setup-uv@v8 with: enable-cache: true - name: Set up Python ${{{{ matrix.python-version }}}} @@ -1325,7 +1325,7 @@ jobs: matrix: target: [x86_64, x86, aarch64, armv7, s390x, ppc64le] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - uses: actions/setup-python@v6 with: python-version: "{python_version}" @@ -1347,7 +1347,7 @@ jobs: matrix: target: [x64, x86] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - uses: actions/setup-python@v6 with: python-version: "{python_version}" @@ -1369,7 +1369,7 @@ jobs: matrix: target: [x86_64, aarch64] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - uses: actions/setup-python@v6 with: python-version: "{python_version}" @@ -1387,7 +1387,7 @@ jobs: sdist: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - uses: actions/setup-python@v6 with: python-version: "{python_version}" @@ -1433,7 +1433,7 @@ jobs: # For PyPI's trusted publishing. id-token: write steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Set up Python uses: actions/setup-python@v6 with: @@ -1466,9 +1466,9 @@ jobs: # For PyPI's trusted publishing. id-token: write steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install uv - uses: astral-sh/setup-uv@v7 + uses: astral-sh/setup-uv@v8 with: enable-cache: true - name: Set up Python @@ -1525,7 +1525,7 @@ jobs: sudo chown -R $USER:$USER ./data fi - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Create .env file run: | HASHED_PASSWORD=$(openssl passwd -apr1 "${PASSWORD}" | sed 's/\$/\$\$/g') @@ -1596,7 +1596,7 @@ jobs: sudo chown -R $USER:$USER ./data fi - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Create .env file run: | HASHED_PASSWORD=$(openssl passwd -apr1 "${PASSWORD}" | sed 's/\$/\$\$/g') @@ -1675,7 +1675,7 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Set up Python uses: actions/setup-python@v6 with: @@ -1702,9 +1702,9 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install uv - uses: astral-sh/setup-uv@v7 + uses: astral-sh/setup-uv@v8 with: enable-cache: true - name: Set up Python 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 b41fd15d..868a6a58 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@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" +"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@v7\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@v7\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@v7\n - name: Install uv\n uses: astral-sh/setup-uv@v8\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@v7\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@v8\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 4abd5b38..285d646c 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@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" +"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@v7\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@v7\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@v7\n - name: Install uv\n uses: astral-sh/setup-uv@v8\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@v7\n - name: Install uv\n uses: astral-sh/setup-uv@v8\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 b5380609..cc204e6f 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@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" +"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@v7\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@v7\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@v7\n - name: Install uv\n uses: astral-sh/setup-uv@v8\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@v7\n - name: Install uv\n uses: astral-sh/setup-uv@v8\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 e7518649..0d2574f6 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@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" +"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@v7\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 8aee6aa5..93d2b73d 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@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" +"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@v7\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_pyo3.snap b/src/snapshots/python_project__github_actions__tests__save_docs_publish_file_pyo3.snap index 131bea1f..1386649a 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@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" +"name: Docs Publish\non:\n release:\n types:\n - published\njobs:\n deploy:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v7\n - name: Install uv\n uses: astral-sh/setup-uv@v8\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 ad5b66ed..6ff894e1 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@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" +"name: Docs Publish\non:\n release:\n types:\n - published\njobs:\n deploy:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v7\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 131bea1f..1386649a 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@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" +"name: Docs Publish\non:\n release:\n types:\n - published\njobs:\n deploy:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v7\n - name: Install uv\n uses: astral-sh/setup-uv@v8\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_pypi_publish_file_pyo3.snap b/src/snapshots/python_project__github_actions__tests__save_pypi_publish_file_pyo3.snap index da76c69f..daeeb767 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@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@v8\n - name: Install uv\n uses: astral-sh/setup-uv@v8\n - name: Publish to PyPI\n run: uv publish 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@v7\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@v7\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@v7\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@v7\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@v8\n - name: Install uv\n uses: astral-sh/setup-uv@v8\n - name: Publish to PyPI\n run: uv publish 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 2b6963bb..85d53b6a 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@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" +"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@v7\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 877af0a7..067e5538 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@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" +"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@v7\n - name: Install uv\n uses: astral-sh/setup-uv@v8\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 3a704eb0..3d68e0b7 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@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" +"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@v7\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@v7\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 21d4003e..8de14bf1 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@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" +"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@v7\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@v7\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 e006939b..cc636979 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@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" +"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@v7\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@v7\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 c1ef838e..971256b3 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@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" +"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@v7\n - name: Install uv\n uses: astral-sh/setup-uv@v8\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@v7\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@v8\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 3f83cc75..21215f6a 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@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" +"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@v7\n - name: Install uv\n uses: astral-sh/setup-uv@v8\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@v7\n - name: Install uv\n uses: astral-sh/setup-uv@v8\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 39325115..561bd445 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@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" +"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@v7\n - name: Install uv\n uses: astral-sh/setup-uv@v8\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@v7\n - name: Install uv\n uses: astral-sh/setup-uv@v8\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"