@@ -187,48 +187,3 @@ jobs:
187
187
run : |
188
188
source ${{ github.workspace }}/venv/bin/activate
189
189
uv run pytest ${{ matrix.test-file }} -s
190
-
191
-
192
- run-integration-and-unit-test :
193
- needs :
194
- - check-labels
195
- if : always() && needs.check-labels.outputs.run-sdk-tests == 'true'
196
- runs-on : ubuntu-latest
197
- steps :
198
- - name : Check-out repository
199
- uses : actions/checkout@v4
200
-
201
- - name : Install dependencies
202
- run : |
203
- sudo apt-get update &&
204
- sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
205
-
206
- - name : Create Python virtual environment
207
- working-directory : ${{ github.workspace }}
208
- run : python3 -m venv venv
209
-
210
- - name : Clone Bittensor SDK repo
211
- working-directory : ${{ github.workspace }}
212
- run : git clone https://github.com/opentensor/bittensor.git
213
-
214
- - name : Setup Bittensor SDK from cloned repo
215
- working-directory : ${{ github.workspace }}/bittensor
216
- run : |
217
- source ${{ github.workspace }}/venv/bin/activate
218
- git checkout staging
219
- git fetch origin staging
220
- python3 -m pip install --upgrade pip
221
- python3 -m pip install '.[dev]'
222
- python3 -m pip install -r requirements/torch.txt
223
-
224
- - name : Run SDK integration tests
225
- working-directory : ${{ github.workspace }}
226
- run : |
227
- source ${{ github.workspace }}/venv/bin/activate
228
- pytest ${{ github.workspace }}/bittensor/tests/integration_tests
229
-
230
- - name : Run bittensor-sdk unit tests
231
- working-directory : ${{ github.workspace }}
232
- run : |
233
- source ${{ github.workspace }}/venv/bin/activate
234
- pytest ${{ github.workspace }}/bittensor/tests/unit_tests
0 commit comments