Skip to content

Commit 489dd9c

Browse files
fix workflow 7
1 parent 9f74231 commit 489dd9c

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ jobs:
4747
run: .venv_docs/bin/python -m pytest -vv src/tests/docs_bzl
4848

4949
- name: Run bazel test targets
50-
run: bazel test --lockfile_mode=error //...
50+
run: bazel test --lockfile_mode=error //... --build_tests_only
51+
52+
- name: Build all targets
53+
# Skip tests, since some are non buildable negative tests
54+
run: bazel build --lockfile_mode=error //... -- -//src/tests/...
5155

5256
- name: Prepare bundled test report
5357
if: ! cancelled()

docs.bzl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ def _rewrite_needs_json_to_docs_sources(labels):
5050
out = []
5151
for x in labels:
5252
s = str(x)
53-
if s.endswith("//:needs_json"):
54-
out.append(s.replace("//:needs_json", "//:docs_sources"))
53+
if s.endswith(":needs_json"):
54+
out.append(s.replace(":needs_json", ":docs_sources"))
5555
else:
5656
out.append(s)
5757
return out
@@ -61,9 +61,9 @@ def _rewrite_needs_json_to_sourcelinks(labels):
6161
out = []
6262
for x in labels:
6363
s = str(x)
64-
if s.endswith("//:needs_json"):
65-
out.append(s.replace("//:needs_json", "//:sourcelinks_json"))
66-
#Items which do not end up with '//:needs_json' shall not be appended to 'out'.
64+
if s.endswith(":needs_json"):
65+
out.append(s.replace(":needs_json", ":sourcelinks_json"))
66+
#Items which do not end up with ':needs_json' shall not be appended to 'out'.
6767
#They are treated separately and are not related to source code linking.
6868
return out
6969

0 commit comments

Comments
 (0)