Skip to content

docs: replace Travis CI badge with GitHub Actions + unit test table#361

Merged
crimson-gao merged 1 commit into
aliyun:masterfrom
sls-dev-agent:docs/ci-badges
May 22, 2026
Merged

docs: replace Travis CI badge with GitHub Actions + unit test table#361
crimson-gao merged 1 commit into
aliyun:masterfrom
sls-dev-agent:docs/ci-badges

Conversation

@sls-dev-agent

Copy link
Copy Markdown
Contributor

Summary

  • Replace the dead Travis CI badge (travis-ci.org has been shut down) with the two GitHub Actions workflow badges introduced in test: split tests into unit/e2e, add mock infra #360.
  • Add a unit-test status table listing each Python version that runs unit tests and the mechanism used (actions/setup-python@v5 vs container).
  • Mirror the change in README_CN.md.

The new badges:

  • build.yaml covers Python 3.8 / 3.10 / 3.12 (modern, via setup-python@v5).
  • py2-build.yaml covers Python 2.7 / 3.6 / 3.7 (legacy, via Docker job containers).

Only versions that actually run pytest tests/unit/ are listed in the table (3.7, 3.8, 3.12). Versions that only run tests/ci/build-test/ (smoke compile + import) are still reflected by the workflow-level badges at the top.

Note: GitHub Actions badges are workflow-scoped (no per-matrix-entry badge URL), so 3.8 and 3.12 share the same build.yaml badge — the table row links each version to its workflow's run history.

Test plan

  • curl -sI both badge URLs → 200 OK
  • Maintainer renders the README in the GitHub web UI and confirms the table looks right

…dges

- Replace Travis CI badge (travis-ci.org shut down) with two GitHub
  Actions workflow badges in the header (Py3 build/test + Legacy
  Python build/test, both introduced in aliyun#360)
- Add a per-Python-version CI status table covering 2.7/3.6/3.7/3.8/3.12,
  each row carrying a shields.io badge with a "py X.Y" label that
  reflects the corresponding workflow's pass/fail status on master
- Mirror the change in README_CN.md

Verified on aliyun/aliyun-log-python-sdk master @ a4f13af: all 11 jobs
across both workflows passing (build-test 2.7/3.6/3.7/3.8/3.10/3.12,
unit-test 3.7-container/3.8/3.12, typing, e2e-test skipped).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@crimson-gao crimson-gao merged commit f5e7a30 into aliyun:master May 22, 2026
12 checks passed
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