Skip to content

Commit 682d938

Browse files
authored
devops(bots): test sync generation script (#84)
1 parent a479a81 commit 682d938

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,21 @@ jobs:
1515
uses: actions/setup-python@v2
1616
with:
1717
python-version: 3.8
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: 12.x
1822
- name: Install dependencies
1923
run: |
2024
python -m pip install --upgrade pip
2125
pip install -r local-requirements.txt
22-
pip install .
26+
pip install -e .
2327
- name: Lint
2428
run: pre-commit run --all-files
29+
- name: Build driver
30+
run: python build_driver.py
31+
- name: Test Sync generation script
32+
run: bash buildbots/test-sync-generation.sh
2533
build:
2634
timeout-minutes: 30
2735
strategy:
@@ -57,7 +65,7 @@ jobs:
5765
python -m pip install --upgrade pip
5866
pip install coveralls
5967
pip install -r local-requirements.txt
60-
pip install .
68+
pip install -e .
6169
- name: Build driver
6270
run: python build_driver.py
6371
env:

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
run: |
2121
python -m pip install --upgrade pip
2222
pip install -r local-requirements.txt
23-
pip install .
23+
pip install -e .
2424
- name: Build driver
2525
run: python build_driver.py
2626
- name: Build package

buildbots/test-sync-generation.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
newfile="sync.py"
4+
oldfile="playwright/sync.py"
5+
6+
python scripts/generate_sync_api.py > $newfile
7+
8+
pre-commit run --files $newfile
9+
10+
cmp $oldfile $newfile
11+
exit_code=$?
12+
13+
rm $newfile
14+
15+
exit $exit_code

0 commit comments

Comments
 (0)