From 9b225ce4fff0312fc0dd1006b1e3ab7a6977b7c3 Mon Sep 17 00:00:00 2001 From: star-med Date: Tue, 5 May 2026 20:14:25 +0800 Subject: [PATCH 1/2] ci: add GitHub Actions workflow for pytest (CCC2) --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ README.md | 4 ++++ 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..929e023 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: + push: + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + pytest: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + cache: pip + cache-dependency-path: requirements.txt + + - name: Install dependencies + run: pip install -r requirements.txt + + - name: Run tests + run: pytest --tb=short -q diff --git a/README.md b/README.md index b731102..3047796 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,10 @@ claude-code-chat-browser/ └── tests/ ``` +## Continuous integration + +Every push and pull request runs **`pytest`** on **Ubuntu** (Python 3.12) via [`.github/workflows/ci.yml`](.github/workflows/ci.yml). + ## Exported Markdown Format Each exported session includes: From 1ae6b4cd92693456b32fa603bbfd44b1d25535db Mon Sep 17 00:00:00 2001 From: star-med Date: Tue, 5 May 2026 20:19:23 +0800 Subject: [PATCH 2/2] ci: scope push trigger to master branch --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 929e023..1fe2a83 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,8 @@ name: CI on: push: + branches: + - master pull_request: concurrency: