Skip to content

Commit e54899c

Browse files
chore(python): refactor unit / system test dependency install (googleapis#700)
* chore: upgrade black in noxfile.py to 22.3.0 Source-Link: googleapis/synthtool@0dcf739 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:9ce2de2e0a59b6ae3b1eb216f441ee0dea59b1cfc08109d03613916d09d25a35 * ci: add extras for system tests * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 879c55b commit e54899c

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

noxfile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@
5252
SYSTEM_TEST_EXTERNAL_DEPENDENCIES = []
5353
SYSTEM_TEST_LOCAL_DEPENDENCIES = []
5454
SYSTEM_TEST_DEPENDENCIES = []
55-
SYSTEM_TEST_EXTRAS = []
55+
SYSTEM_TEST_EXTRAS = [
56+
"tracing",
57+
]
5658
SYSTEM_TEST_EXTRAS_BY_PYTHON = {}
5759

5860
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()

owlbot.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,19 @@ def get_staging_dirs(
137137
# Add templated files
138138
# ----------------------------------------------------------------------------
139139
templated_files = common.py_library(
140-
microgenerator=True, samples=True, cov_level=99, split_system_tests=True,
140+
microgenerator=True,
141+
samples=True,
142+
cov_level=99,
143+
split_system_tests=True,
144+
system_test_extras=["tracing"],
141145
)
142-
s.move(templated_files,
146+
s.move(
147+
templated_files,
143148
excludes=[
144-
".coveragerc",
145-
".github/workflows", # exclude gh actions as credentials are needed for tests
146-
]
147-
)
149+
".coveragerc",
150+
".github/workflows", # exclude gh actions as credentials are needed for tests
151+
],
152+
)
148153

149154
# Ensure CI runs on a new instance each time
150155
s.replace(

0 commit comments

Comments
 (0)