Skip to content

Ci/GitHub actions migration#393

Closed
RishabhJain2018 wants to merge 4 commits into
masterfrom
ci/github-actions-migration
Closed

Ci/GitHub actions migration#393
RishabhJain2018 wants to merge 4 commits into
masterfrom
ci/github-actions-migration

Conversation

@RishabhJain2018

@RishabhJain2018 RishabhJain2018 commented Jun 14, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Chores

    • Migrated CI/CD pipeline from Travis CI to GitHub Actions with automated testing, linting, and publishing workflows.
    • Updated coverage reporting integration to use Codecov instead of Coveralls.
    • Enhanced linting configuration with additional directory exclusions.
    • Updated test dependencies to latest versions.
  • Documentation

    • Added comprehensive CI/CD setup documentation outlining workflows, secrets, and release process.
    • Updated README badges to reflect new CI/CD and coverage tools.

Replace Travis, Coveralls, and deploy-staging.sh with GitHub Actions workflows for linting, testing, Codecov uploads, and PyPI/TestPyPI publishing. Align CI Python runtime with EvalAI at 3.9.21 and add CodeRabbit badge to README.
flake8 3.0.4 uses an incompatible pyflakes version that fails on Python 3.9 AST nodes.
Address CodeRabbit review by pinning all workflow action references and
disabling checkout credential persistence.
Authenticate TestPyPI uploads with __token__ and TEST_PYPI_API_TOKEN,
matching the production PyPI publish flow.
@coderabbitai

coderabbitai Bot commented Jun 14, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: e157a570-21d5-487c-9101-d5b829a7e124

📥 Commits

Reviewing files that changed from the base of the PR and between 6030779 and bc89e7a.

📒 Files selected for processing (11)
  • .coveralls.yml
  • .flake8
  • .github/CI_CD.md
  • .github/workflows/ci-cd.yml
  • .github/workflows/upload-coverage.yml
  • .pre-commit-config.yaml
  • .travis.yml
  • README.md
  • codecov.yml
  • deploy-staging.sh
  • setup.py

📝 Walkthrough

Walkthrough

Removes the Travis CI configuration (.travis.yml, deploy-staging.sh, .coveralls.yml) and replaces it with two GitHub Actions workflows: ci-cd.yml (linting, testing, publishing to TestPyPI/PyPI) and upload-coverage.yml (Codecov upload triggered after ci-cd completes). Adds codecov.yml, updates .flake8, .pre-commit-config.yaml, setup.py dependencies, README badges, and adds CI_CD.md documentation.

Changes

Travis CI to GitHub Actions Migration

Layer / File(s) Summary
Travis CI and legacy tooling removal
.travis.yml, deploy-staging.sh, .coveralls.yml, setup.py
Removes Travis CI config, the deploy-staging.sh build/push script, Coveralls service config, and drops the coveralls test dependency while bumping flake8 to 7.1.2 in tests_require.
GitHub Actions ci-cd.yml workflow
.github/workflows/ci-cd.yml
Adds a four-job workflow: code_quality (flake8 lint), test (pytest with coverage XML artifact + PR metadata upload), publish_to_testpypi (staging branch or manual dispatch), and publish_to_pypi (tag-based), with concurrency control and Python 3.9.21 pinned globally.
Coverage upload workflow
.github/workflows/upload-coverage.yml
Adds upload-coverage workflow triggered by ci-cd completion; downloads coverage and PR metadata artifacts, uploads coverage.xml to Codecov with PR/commit overrides, and posts the result as a GitHub commit status.
Codecov configuration
codecov.yml
Adds Codecov config with coverage thresholds (project and patch), ignore patterns, a cli flag pointing to evalai/, comment layout settings, and GitHub check annotations.
Supporting config and docs
.flake8, .pre-commit-config.yaml, README.md, .github/CI_CD.md
Adds flake8 exclude paths for git/docs/venv dirs, updates Black pre-commit hook to Python 3.9, replaces Travis/Coveralls badges with GitHub Actions/CodeRabbit/Codecov badges, and adds CI/CD release documentation.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • Cloud-CV/evalai-cli#391: Directly overlaps with this PR's Travis-to-GitHub Actions migration, covering the same files including ci-cd.yml, upload-coverage.yml, and coverage configuration.

Poem

🐇 Hoppity-hop, Travis is gone,
GitHub Actions now carries us on!
Codecov watches each line that we write,
Badges gleam green in the morning light.
From staging to master with tags we release,
The bunny now codes with a pipeline at ease! 🚀

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/github-actions-migration

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov

codecov Bot commented Jun 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (master@6426f26). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #393   +/-   ##
=========================================
  Coverage          ?   80.55%           
=========================================
  Files             ?       19           
  Lines             ?     1260           
  Branches          ?        0           
=========================================
  Hits              ?     1015           
  Misses            ?      245           
  Partials          ?        0           
Flag Coverage Δ
cli 80.55% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6426f26...bc89e7a. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@RishabhJain2018 RishabhJain2018 deleted the ci/github-actions-migration branch June 14, 2026 22:02
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.

1 participant