Skip to content

Commit 9004940

Browse files
authored
chore: install script dependencies in github action (googleapis#10558)
* chore: install script dependencies in github action * add test code * fix FileNotFoundError * test * remove test code
1 parent 41132c2 commit 9004940

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ jobs:
3636
uses: actions/setup-python@v2
3737
with:
3838
python-version: 3.9
39-
- name: Run python script to update the api list in README.rst
40-
run: python3 updateapilist.py
39+
- name: Install script dependencies
40+
run: pip3 install -r requirements.txt
4141
working-directory: ./scripts
42+
- name: Run python script to update the api list in README.rst
43+
run: python3 scripts/updateapilist.py
4244
env:
4345
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4446
- uses: googleapis/code-suggester@v2

scripts/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
requests==2.25.1

0 commit comments

Comments
 (0)