Skip to content

feat: add GitHub Actions CI workflow#273

Open
dashitongzhi wants to merge 1 commit into
facebookresearch:mainfrom
dashitongzhi:feat/ci-20260520000906
Open

feat: add GitHub Actions CI workflow#273
dashitongzhi wants to merge 1 commit into
facebookresearch:mainfrom
dashitongzhi:feat/ci-20260520000906

Conversation

@dashitongzhi

Copy link
Copy Markdown

Summary

This PR adds GitHub Actions CI workflow to the project.

Changes Made

  • Add CI workflow for automated testing and linting
  • Improve project with contribution guidelines

Checklist

  • Code follows project style guidelines
  • Tests added where applicable

Submitted via OSS PR Campaign by Kral

Copilot AI review requested due to automatic review settings May 19, 2026 16:09
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 19, 2026

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

This PR introduces a GitHub Actions-based CI workflow intended to run Python linting, type checking, and tests on pushes and pull requests.

Changes:

  • Add a new GitHub Actions workflow to run flake8, mypy, and tests across a Python version matrix.

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

Comment thread .github/python-ci.yml
Comment on lines +1 to +6
name: Python CI

on:
push:
branches: [ main, master ]
pull_request:
Comment thread .github/python-ci.yml
cache: 'pip'
- name: Install dependencies
run: |
pip install -e . 2>/dev/null || pip install -r requirements.txt 2>/dev/null || true
Comment thread .github/python-ci.yml
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 thread .github/python-ci.yml
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"
Comment thread .github/python-ci.yml
Comment on lines +1 to +3
name: Python CI

on:
Comment thread .github/python-ci.yml
push:
branches: [ main, master ]
pull_request:

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants