Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/docker_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build Docker Image

on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build
uses: docker/build-push-action@v6
with:
push: false
context: .
file: Dockerfile
tags: "${{ github.sha }}"
File renamed without changes.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ dev = [
]

[project.scripts]
gitingest = "gitingest.cli:main"
gitingest = "gitingest.__main__:main"

[project.urls]
homepage = "https://gitingest.com"
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import pytest
from click.testing import CliRunner, Result

from gitingest.cli import main
from gitingest.__main__ import main
from gitingest.config import MAX_FILE_SIZE, OUTPUT_FILE_NAME


Expand Down Expand Up @@ -72,8 +72,8 @@ def test_cli_with_stdout_output() -> None:
# ─── core expectations (stdout) ────────────────────────────────────-
assert result.exit_code == 0, f"CLI exited with code {result.exit_code}, stderr: {result.stderr}"
assert "---" in result.stdout, "Expected file separator '---' not found in STDOUT"
assert "src/gitingest/cli.py" in result.stdout, (
"Expected content (e.g., src/gitingest/cli.py) not found in STDOUT"
assert "src/gitingest/__main__.py" in result.stdout, (
"Expected content (e.g., src/gitingest/__main__.py) not found in STDOUT"
)
assert not output_file.exists(), f"Output file {output_file} was unexpectedly created."

Expand Down
Loading