Skip to content

Commit 1060789

Browse files
iindykcopybara-github
authored andcommitted
Fix workflow permissions and requirements build.
PiperOrigin-RevId: 783088227
1 parent 87651fa commit 1060789

8 files changed

Lines changed: 6 additions & 19 deletions

.github/workflows/python-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ on:
77
jobs:
88
call-workflow:
99
uses: ./.github/workflows/build_and_publish_template.yml
10+
permissions:
11+
contents: read
12+
id-token: write
1013
with:
1114
upload_wheels: false
File renamed without changes.

python/array_record_data_source_test.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -247,22 +247,6 @@ def test_repr(self):
247247
])
248248
self.assertRegex(repr(ar), r"ArrayRecordDataSource\(hash_of_paths=[\w]+\)")
249249

250-
@flagsaver.flagsaver(grain_use_fast_array_record_reader=False)
251-
def test_additional_reader_options(self):
252-
indices_to_read = [3, 0, 5, 9, 2, 1, 4, 7, 8, 6]
253-
ar = array_record_data_source.ArrayRecordDataSource(
254-
[
255-
self.testdata_dir / "digits.array_record-00000-of-00002",
256-
self.testdata_dir / "digits.array_record-00001-of-00002",
257-
],
258-
{"index_storage_option": "in_memory"},
259-
)
260-
# We need to read the records to trigger the creation of the readers.
261-
_ = [ar[x] for x in indices_to_read]
262-
self.assertLen(ar._readers, 2)
263-
self.assertIsInstance(ar._readers[0], array_record_module.ArrayRecordReader)
264-
self.assertIsInstance(ar._readers[1], array_record_module.ArrayRecordReader)
265-
266250

267251
class RunInParallelTest(parameterized.TestCase):
268252

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ typing-extensions==4.14.1 \
2323
zipp==3.23.0 \
2424
--hash=sha256:071652d6115ed432f5ce1d34c336c0adfd6a884660d1e9712a256d3d3bd4b14e \
2525
--hash=sha256:a07157588a12518c9d4034df3fbbee09c814741a33ff63c05fa29d26a2404166
26-
# via etils
26+
# via etils
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ typing-extensions==4.14.1 \
2323
zipp==3.23.0 \
2424
--hash=sha256:071652d6115ed432f5ce1d34c336c0adfd6a884660d1e9712a256d3d3bd4b14e \
2525
--hash=sha256:a07157588a12518c9d4034df3fbbee09c814741a33ff63c05fa29d26a2404166
26-
# via etils
26+
# via etils
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ typing-extensions==4.14.1 \
2323
zipp==3.23.0 \
2424
--hash=sha256:071652d6115ed432f5ce1d34c336c0adfd6a884660d1e9712a256d3d3bd4b14e \
2525
--hash=sha256:a07157588a12518c9d4034df3fbbee09c814741a33ff63c05fa29d26a2404166
26-
# via etils
26+
# via etils

0 commit comments

Comments
 (0)