Skip to content

Commit b1c1781

Browse files
committed
Merge branch 'master' into ci/tests_refactor
2 parents fae9794 + bf9cc07 commit b1c1781

File tree

1 file changed

+12
-28
lines changed

1 file changed

+12
-28
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ jobs:
5151
name: Build tests
5252
uses: ./.github/workflows/build_tests.yml
5353
needs: gen-matrix
54-
if: github.event.action != 'closed'
54+
#if: github.event.action != 'closed'
55+
if: false
5556
strategy:
5657
matrix:
5758
type: ${{ fromJson(needs.gen-matrix.outputs.build-types) }}
@@ -64,7 +65,8 @@ jobs:
6465
name: Run tests on hardware
6566
uses: ./.github/workflows/hw.yml
6667
needs: [gen-matrix, call-build-tests]
67-
if: ${{ github.event_name != 'pull_request_target' || contains(github.event.pull_request.labels.*.name, 'hil_test') }}
68+
#if: ${{ github.event_name != 'pull_request_target' || contains(github.event.pull_request.labels.*.name, 'hil_test') }}
69+
if: false
6870
strategy:
6971
fail-fast: false
7072
matrix:
@@ -78,7 +80,8 @@ jobs:
7880
name: Run tests on Wokwi
7981
uses: ./.github/workflows/wokwi.yml
8082
needs: [gen-matrix, call-build-tests]
81-
if: github.event.action != 'closed'
83+
#if: github.event.action != 'closed'
84+
if: false
8285
strategy:
8386
fail-fast: false
8487
matrix:
@@ -137,41 +140,22 @@ jobs:
137140
direction: 'asc',
138141
key: 'tests-'
139142
}).then(caches => {
140-
console.log(caches);
141-
});
142-
143-
/*
144-
do {
145-
// Fetch all cache entries for the repository
146-
caches = await github.paginate(github.rest.actions.getActionsCacheList, {
147-
owner: context.repo.owner,
148-
repo: context.repo.repo,
149-
per_page: 100,
150-
sort: 'created_at',
151-
direction: 'asc',
152-
key: 'tests-'
153-
});
154-
} while(caches?.data?.actions_caches?.length > 0);
155-
156-
console.log(caches.data.actions_caches.map(cache => cache.key));
157-
158-
if (caches.data) {
159-
// Delete matching caches
160-
for (const cache of caches.data.actions_caches) {
143+
if (caches) {
144+
for (const cache of caches) {
161145
if (cache.key.endsWith(sha) || (!pr && !cache.key.startsWith("tests-bin-"))) {
162146
console.log(`Skipping cache with key: ${cache.key}`);
163147
continue;
164148
}
165149
166150
console.log(`Deleting cache with key: ${cache.key}`);
167151
168-
await github.rest.actions.deleteActionsCacheById({
152+
/*
153+
github.rest.actions.deleteActionsCacheById({
169154
owner: context.repo.owner,
170155
repo: context.repo.repo,
171156
cache_id: cache.id
172157
});
158+
*/
173159
}
174-
await sleep(30000); // Sleep for 30 seconds to avoid rate limiting
175160
}
176-
} while(caches?.data?.actions_caches?.length > 0);
177-
*/
161+
});

0 commit comments

Comments
 (0)