Skip to content

Pin external GitHub actions to a specific commit #104

Pin external GitHub actions to a specific commit

Pin external GitHub actions to a specific commit #104

Workflow file for this run

name: Test ClaudeCode Integration
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pull-requests: read
actions: read
checks: read
jobs:
test-claudecode:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Set up Python
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
with:
python-version: '3.10'
- name: Set up Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: '20'
- name: Install Claude CLI
run: |
npm install -g @anthropic-ai/claude-code
- name: Install dependencies
run: |
pip install pytest pytest-cov
pip install -r claudecode/requirements.txt
- name: Run ClaudeCode unit tests
run: |
export PYTHONPATH="${PYTHONPATH}:${PWD}"
pytest claudecode -v --cov=claudecode --cov-report=term-missing
- name: Install Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: latest
- name: Install script dependencies
run: |
cd scripts
bun install
- name: Run comment script tests
run: |
cd scripts
bun test
- name: Run bash script tests
run: |
chmod +x scripts/test-determine-claudecode-enablement.sh
./scripts/test-determine-claudecode-enablement.sh