@@ -14,35 +14,36 @@ name: Run Python Basics Integration and Unit Tests
1414on :
1515 pull_request :
1616 types : [opened, reopened, synchronize]
17+ concurrency :
18+ group : tests-${{ github.event.pull_request.number || github.run_id }}
19+ cancel-in-progress : ${{ github.event_name == 'pull_request' }}
20+ env :
21+ ANDROID_HOME : " "
22+ ANDROID_SDK_ROOT : " "
23+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 : true
1724jobs :
18- code :
19- runs-on : ubuntu-latest
25+ root_workspace_tests :
26+ runs-on : ubuntu-24.04
27+ permissions :
28+ contents : read
29+ actions : write
2030 steps :
2131 - name : Checkout repository
2232 uses : actions/checkout@v7.0.0
23- - name : Install Missing Dependencies
24- run : |
25- sudo apt-get update
26- sudo apt-get install -y libcairo2-dev
27- - name : Run python_basics integration tests
28- run : |
29- cd python_basics/integration_tests
30- bazel test //...
31- - name : Run starpls integration tests
32- run : |
33- cd starpls/integration_tests
34- bazel test //...
35- - name : Run cr_checker unit tests
36- run : |
37- cd cr_checker/tests
38- bazel test //...
33+ - name : Free Disk Space (Ubuntu)
34+ uses : eclipse-score/more-disk-space@v1
35+ with :
36+ level : 4
37+ - uses : castler/setup-bazel@cache-optimized
38+ with :
39+ bazelisk-cache : true
40+ disk-cache : root_workspace_tests
41+ repository-cache : true
42+ cache-optimized : true
43+ cache-save : ${{ github.ref == 'refs/heads/main' }}
3944 - name : Run coverage module tests
4045 run : |
4146 bazel test //coverage/tests:all
42- - name : Run rules_score tests
43- run : |
44- cd bazel/rules/rules_score/test
45- bazel test //...
4647 - name : Run Plantuml Tooling clippy
4748 run : |
4849 bazel build //plantuml/... --config=clippy
6465 - name : Run Libclang Parser Tooling tests
6566 run : |
6667 bazel test //cpp/libclang/...
68+ integration_tests :
69+ runs-on : ubuntu-24.04
70+ permissions :
71+ contents : read
72+ actions : write
73+ steps :
74+ - name : Checkout repository
75+ uses : actions/checkout@v7.0.0
76+ - name : Free Disk Space (Ubuntu)
77+ uses : eclipse-score/more-disk-space@v1
78+ with :
79+ level : 4
80+ - uses : castler/setup-bazel@cache-optimized
81+ with :
82+ bazelisk-cache : true
83+ disk-cache : integration_tests
84+ repository-cache : true
85+ cache-optimized : true
86+ cache-save : ${{ github.ref == 'refs/heads/main' }}
87+ - name : Run python_basics integration tests
88+ run : |
89+ cd python_basics/integration_tests
90+ bazel test //...
91+ - name : Run starpls integration tests
92+ run : |
93+ cd starpls/integration_tests
94+ bazel test //...
95+ - name : Run cr_checker unit tests
96+ run : |
97+ cd cr_checker/tests
98+ bazel test //...
99+ rules_score_tests :
100+ runs-on : ubuntu-24.04
101+ permissions :
102+ contents : read
103+ actions : write
104+ steps :
105+ - name : Checkout repository
106+ uses : actions/checkout@v7.0.0
107+ - name : Free Disk Space (Ubuntu)
108+ uses : eclipse-score/more-disk-space@v1
109+ with :
110+ level : 4
111+ - uses : castler/setup-bazel@cache-optimized
112+ with :
113+ bazelisk-cache : true
114+ disk-cache : rules_score_tests
115+ repository-cache : true
116+ cache-optimized : true
117+ cache-save : ${{ github.ref == 'refs/heads/main' }}
118+ - name : Install Missing Dependencies
119+ run : |
120+ sudo apt-get update
121+ sudo apt-get install -y libcairo2-dev
122+ - name : Run rules_score tests
123+ run : |
124+ cd bazel/rules/rules_score/test
125+ bazel test //...
0 commit comments