@@ -16,45 +16,45 @@ permissions:
1616jobs :
1717 test-claudecode :
1818 runs-on : ubuntu-latest
19-
19+
2020 steps :
21- - uses : actions/checkout@v4
22-
23- - name : Set up Python
24- uses : actions/setup-python@v4
25- with :
26- python-version : ' 3.10'
27-
28- - name : Set up Node.js
29- uses : actions/setup-node@v4
30- with :
31- node-version : ' 20 '
32-
33- - name : Install Claude CLI
34- run : |
35- npm install -g @anthropic-ai/claude-code
36-
37- - name : Install dependencies
38- run : |
39- pip install pytest pytest-cov
40- pip install -r claudecode/requirements.txt
41-
42- - name : Run ClaudeCode unit tests
43- run : |
44- export PYTHONPATH="${PYTHONPATH}:${PWD}"
45- pytest claudecode -v --cov=claudecode --cov-report=term-missing
46-
47- - name : Install Bun
48- uses : oven-sh/setup-bun@v2
49- with :
50- bun-version : latest
51-
52- - name : Install script dependencies
53- run : |
54- cd scripts
55- bun install
56-
57- - name : Run comment script tests
58- run : |
59- cd scripts
60- bun test
21+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 pinned to commit hash
22+
23+ - name : Set up Python
24+ uses : actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1 pinned to commit hash
25+ with :
26+ python-version : " 3.10"
27+
28+ - name : Set up Node.js
29+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 pinned to commit hash
30+ with :
31+ node-version : " 20 "
32+
33+ - name : Install Claude CLI
34+ run : |
35+ npm install -g @anthropic-ai/claude-code
36+
37+ - name : Install dependencies
38+ run : |
39+ pip install pytest pytest-cov
40+ pip install -r claudecode/requirements.txt
41+
42+ - name : Run ClaudeCode unit tests
43+ run : |
44+ export PYTHONPATH="${PYTHONPATH}:${PWD}"
45+ pytest claudecode -v --cov=claudecode --cov-report=term-missing
46+
47+ - name : Install Bun
48+ uses : oven-sh/setup-bun@b7a1c7ccf290d58743029c4f6903da283811b979 # v2.1.0 pinned to commit hash
49+ with :
50+ bun-version : latest
51+
52+ - name : Install script dependencies
53+ run : |
54+ cd scripts
55+ bun install
56+
57+ - name : Run comment script tests
58+ run : |
59+ cd scripts
60+ bun test
0 commit comments