Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

feat: add GitHub Actions CI workflow#117

Open
dashitongzhi wants to merge 1 commit into
astrit:mainfrom
dashitongzhi:feat/ci-20260519201210
Open

feat: add GitHub Actions CI workflow#117
dashitongzhi wants to merge 1 commit into
astrit:mainfrom
dashitongzhi:feat/ci-20260519201210

Conversation

@dashitongzhi

Copy link
Copy Markdown

Add Python CI workflow for automated testing and linting

Copilot AI review requested due to automatic review settings May 19, 2026 12:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a GitHub Actions workflow to run Python CI checks (linting, type checking, and tests) on pushes and pull requests.

Changes:

  • Introduces a Python CI workflow triggered on push and pull_request
  • Runs a test matrix across Python 3.9–3.12
  • Adds steps for dependency install, flake8 lint, mypy type check, and test execution

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

cache: 'pip'
- name: Install dependencies
run: |
pip install -e . 2>/dev/null || pip install -r requirements.txt 2>/dev/null || true
mypy . --ignore-missing-imports 2>/dev/null || echo "mypy not configured"
- name: Run tests
run: |
pytest --tb=short --cov=. --cov-report=term-missing 2>/dev/null || python -m unittest discover 2>/dev/null || echo "No test framework found"
Comment on lines +23 to +33
pip install -e . 2>/dev/null || pip install -r requirements.txt 2>/dev/null || true
pip install pytest pytest-cov flake8 mypy
- name: Lint with flake8
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Type check with mypy
run: |
mypy . --ignore-missing-imports 2>/dev/null || echo "mypy not configured"
- name: Run tests
run: |
pytest --tb=short --cov=. --cov-report=term-missing 2>/dev/null || python -m unittest discover 2>/dev/null || echo "No test framework found"
mypy . --ignore-missing-imports 2>/dev/null || echo "mypy not configured"
- name: Run tests
run: |
pytest --tb=short --cov=. --cov-report=term-missing 2>/dev/null || python -m unittest discover 2>/dev/null || echo "No test framework found"
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