Skip to content

Commit 26bf115

Browse files
committed
make it possible to exclude tests
1 parent 3453fc4 commit 26bf115

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

Developers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ the root directory, run:
6060
rm -rf dist/*
6161
poetry publish --build && cd book && ./Deepnote.sh
6262
```
63-
- Finally, PR the updated pyproject.toml (without the `requires new pip wheels` label).
63+
- Finally, PR the updated pyproject.toml (*without* the `requires new pip wheels` label).
6464

6565
Note: use `poetry config pypi-token.pypi <token>` once to set up your pypi token.
6666

workflows/ci/jammy/test

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,17 @@
33
# Copyright 2020 Massachusetts Institute of Technology.
44
# Licensed under the BSD 3-Clause License. See LICENSE.TXT for details.
55

6+
67
set -euo pipefail
78

89
# Run the tests in batches to reduce the memory footprint on CI. (I was running
910
# out of memory on manipulation's jammy CI)
10-
bazel query 'kind(test, //...)' > /tmp/my_tests.txt
11+
if [ -n "${EXCLUDE_TESTS:-}" ]; then
12+
echo "Excluding tests: $EXCLUDE_TESTS"
13+
bazel query "kind(test, //...) except $EXCLUDE_TESTS" > /tmp/my_tests.txt
14+
else
15+
bazel query 'kind(test, //...)' > /tmp/my_tests.txt
16+
fi
1117
sed 's#^//:#:#g' /tmp/my_tests.txt > /tmp/all_tests.txt
1218

1319
BATCH_SIZE=10

workflows/ci/jammy/test_w_installed_deps

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@
66
set -euo pipefail
77

88
# Run the tests in batches to reduce the memory footprint on CI. (I was running
9-
# out of memory on manipulation's jammy CI)
10-
bazel query 'kind(test, //...)' > /tmp/my_tests.txt
9+
# out of memory on manipulation's jammy CI).
10+
if [ -n "${EXCLUDE_TESTS:-}" ]; then
11+
echo "Excluding tests: $EXCLUDE_TESTS"
12+
bazel query "kind(test, //...) except $EXCLUDE_TESTS" > /tmp/my_tests.txt
13+
else
14+
bazel query 'kind(test, //...)' > /tmp/my_tests.txt
15+
fi
1116
sed 's#^//:#:#g' /tmp/my_tests.txt > /tmp/all_tests.txt
1217

1318
BATCH_SIZE=15

0 commit comments

Comments
 (0)