@@ -122,24 +122,40 @@ jobs:
122
122
fail-fast : false
123
123
matrix :
124
124
include :
125
- - { name: 'C/C++', script: 'check-format.sh' }
126
- - { name: 'Python', script: 'check-format-py.sh' }
127
- - { name: 'Python Lint', script: 'pylint_check.py' }
125
+ - { name: 'C/C++', script: 'check-format.sh' , with_python: 'no', pkgs: 'clang-format-18' }
126
+ - { name: 'Python', script: 'check-format-py.sh', with_python: 'yes', pkgs: '' }
127
+ - { name: 'Python Lint', script: 'pylint_check.py' , with_python: 'yes', pkgs: '' }
128
128
name : ' F: ${{ matrix.name }}'
129
129
steps :
130
130
131
+ - uses : actions/checkout@v4
132
+ # NOTE: We do not need sub-modules. We do not check sub-modules for formatting.
133
+
131
134
# TODO: This should be on the same version of Python as would be found on
132
135
# Ubuntu 24.04 (3.12.3); however that version has some linting errors.
133
136
- uses : actions/setup-python@v5
137
+ if : ${{ matrix.with_python == 'yes' }}
134
138
with :
135
139
python-version : 3.10.10
136
140
137
- - uses : actions/checkout@v4
138
- with :
139
- submodules : ' true'
141
+ - name : Build Python Virtual Env
142
+ run : |
143
+ python -m venv .venv
144
+
145
+ - name : Install Python Requirements
146
+ if : ${{ matrix.with_python == 'yes' }}
147
+ run : |
148
+ source .venv/bin/activate
149
+ pip install -r requirements.txt
150
+
151
+ - name : Install dependencies
152
+ if : ${{ matrix.pkgs }}
153
+ run : sudo apt install -y ${{ matrix.pkgs }}
140
154
141
155
- name : Test
142
- run : ./dev/${{ matrix.script }}
156
+ run : |
157
+ source .venv/bin/activate
158
+ ./dev/${{ matrix.script }}
143
159
144
160
145
161
VerifyTestSuites :
0 commit comments