Skip to content

Conversation

@Geekdude
Copy link
Member

@Geekdude Geekdude commented Feb 3, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 3, 2026 18:26
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a GitHub Actions CI workflow intended to mirror the existing GitLab CI pipeline for this repo.

Changes:

  • Introduces a multi-job GitHub Actions workflow to build/install the package and validate imports.
  • Adds formatting, docs build, unit tests, script-based tests, and coverage generation jobs.
  • Uploads artifacts for formatter output, docs site, and coverage reports.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 34 to 35
continue-on-error: true
steps:
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

continue-on-error: true at the job level will mark the job successful for any failure (including tool installation/network errors), which is broader than the GitLab behavior (allow failure only for formatter/lint findings). Consider removing job-level continue-on-error and instead handling the formatter exit code in the script so only the expected “lint errors” exit code is allowed while other non-zero exit codes fail the job.

Copilot uses AI. Check for mistakes.
source .venv/bin/activate
pip install --upgrade hatch
pip install --upgrade hatch-mkdocs
(hatch fmt | tee fmt.out && echo "lint_errors 0" > metrics.txt) || (cat fmt.out | grep -e 'Found .* errors' | sed 's/Found \(.*\) errors.*/lint_errors \1/' > metrics.txt)
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This uses hatch fmt | tee fmt.out but doesn’t enable pipefail. In GitHub Actions, tee returning 0 can mask a non-zero hatch fmt exit code, causing formatting failures to be treated as success and lint_errors 0 to be written. Add set -o pipefail (or capture PIPESTATUS[0]) so the formatter failure is detected reliably.

Copilot uses AI. Check for mistakes.
Comment on lines +26 to +29
python -m venv --upgrade-deps .venv
source .venv/bin/activate
pip install .
python -c "import chathpc.app; print(chathpc.app.__doc__)"
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pip install . will attempt to install project dependencies. The current pyproject.toml includes a git+ssh://[email protected]/... dependency (codellama), which generally fails on GitHub-hosted runners unless an SSH key/agent is configured. To make this CI runnable for contributors/forks, either switch that dependency to HTTPS (preferred) or add an SSH setup step (e.g., ssh-agent with a deploy key) before installing.

Copilot uses AI. Check for mistakes.
Comment on lines +117 to +120
python -m venv --upgrade-deps .venv
source .venv/bin/activate
pip install .
./scripts/test_commands.sh
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same issue as the Build job: this pip install . will try to resolve the git+ssh://... dependency (codellama) and can fail on GitHub runners without SSH credentials. Consider switching the dependency to HTTPS or configuring SSH before installing.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

github-actions bot commented Feb 3, 2026

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
1135 488 43% 0% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: fc6ba03 by action🐍

@github-actions
Copy link

github-actions bot commented Feb 3, 2026

Test Results

29 tests   29 ✅  4s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 6633b03.

♻️ This comment has been updated with latest results.

- Add permissions for writing to pull requests
- Add sticky PR comments for format check results
- Add coverage summary to step summary with percentage calculation
@github-actions
Copy link

github-actions bot commented Feb 4, 2026

Format results

Metrics

$(cat metrics.txt 2>/dev/null || echo "metrics.txt missing")

Formatter output (last 200 lines)

$(tail -n 200 fmt.out 2>/dev/null || echo "fmt.out missing")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants