-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Maksim Sadym
committed
May 6, 2022
1 parent
862503f
commit 0d02f07
Showing
5 changed files
with
66 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,64 @@ | ||
## This workflow will check out wpt and run the WebDriver BiDi tests against our | ||
## implementation. | ||
# | ||
#name: web-platform-tests | ||
# | ||
#on: | ||
# pull_request: | ||
# branches: '*' | ||
# | ||
#jobs: | ||
# wpt: | ||
# runs-on: ubuntu-20.04 | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v2 | ||
# with: | ||
# submodules: true | ||
# - name: Set up Node.js | ||
# uses: actions/setup-node@v1 | ||
# with: | ||
# node-version: 16.x | ||
# - name: Install dependencies | ||
# run: npm install | ||
# - name: Build | ||
# run: npm run build | ||
# - name: Set up Python | ||
# uses: actions/setup-python@v2 | ||
# with: | ||
# python-version: '3.9' | ||
# - name: Set up virtualenv | ||
# run: pip install virtualenv | ||
# - name: Set up hosts | ||
# run: ./wpt make-hosts-file | sudo tee -a /etc/hosts | ||
# working-directory: wpt | ||
# # TODO: Install a pinned version of Chromium. This may become possible | ||
# # after https://github.com/web-platform-tests/wpt/issues/28970. | ||
# - name: Install Chromium | ||
# run: ./wpt install chromium browser | ||
# working-directory: wpt | ||
# - name: Run tests | ||
# # For verbose logging, add --log-mach - --log-mach-level info | ||
# run: ./wpt run --webdriver-binary ../runBiDiServer.sh --binary _venv3/browsers/nightly/chrome-linux/chrome --manifest MANIFEST.json --metadata ../wpt-metadata --log-wptreport wptreport.json chromium webdriver/tests/bidi/ | ||
# working-directory: wpt | ||
# - name: Update expectations | ||
# if: ${{ always() }} | ||
# run: ./wpt update-expectations --product chromium --manifest MANIFEST.json --metadata ../wpt-metadata wptreport.json | ||
# working-directory: wpt | ||
# - name: Upload expectations | ||
# if: ${{ always() }} | ||
# uses: actions/upload-artifact@v2 | ||
# with: | ||
# name: wpt-metadata | ||
# path: wpt-metadata | ||
# - name: Upload logs | ||
# if: ${{ always() }} | ||
# uses: actions/upload-artifact@v2 | ||
# with: | ||
# name: logs | ||
# # Note: runBiDiServer.sh will be run multiple times and log.txt will be | ||
# # overwritten. The problem might not be in the log.txt written last. | ||
# path: logs | ||
# | ||
#env: | ||
# FORCE_COLOR: 3 | ||
# This workflow will check out wpt and run the WebDriver BiDi tests against our | ||
# implementation. | ||
|
||
name: web-platform-tests | ||
|
||
on: | ||
pull_request: | ||
branches: '*' | ||
|
||
jobs: | ||
wpt: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16.x | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Build | ||
run: npm run build | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.9' | ||
- name: Set up virtualenv | ||
run: pip install virtualenv | ||
- name: Set up hosts | ||
run: ./wpt make-hosts-file | sudo tee -a /etc/hosts | ||
working-directory: wpt | ||
# TODO: Install a pinned version of Chromium. This may become possible | ||
# after https://github.com/web-platform-tests/wpt/issues/28970. | ||
- name: Install Chromium | ||
run: ./wpt install chromium browser | ||
working-directory: wpt | ||
- name: Run tests | ||
# For verbose logging, add --log-mach - --log-mach-level info | ||
run: ./wpt run --webdriver-binary ../runBiDiServer.sh --binary _venv3/browsers/nightly/chrome-linux/chrome --manifest MANIFEST.json --metadata ../wpt-metadata --log-wptreport wptreport.json chromium webdriver/tests/bidi/ | ||
working-directory: wpt | ||
- name: Update expectations | ||
if: ${{ always() }} | ||
run: ./wpt update-expectations --product chromium --manifest MANIFEST.json --metadata ../wpt-metadata wptreport.json | ||
working-directory: wpt | ||
- name: Upload expectations | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: wpt-metadata | ||
path: wpt-metadata | ||
- name: Upload logs | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: logs | ||
# Note: runBiDiServer.sh will be run multiple times and log.txt will be | ||
# overwritten. The problem might not be in the log.txt written last. | ||
path: logs | ||
|
||
env: | ||
FORCE_COLOR: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
pytest===6.1.2 | ||
pytest-asyncio==0.14.0 | ||
websockets==8.1 | ||
pytest-timeout==2.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters