-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Expand file tree
/
Copy pathaction.yml
More file actions
27 lines (27 loc) · 1.09 KB
/
action.yml
File metadata and controls
27 lines (27 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Set up Chrome for pytest
description: Install Chrome/Chromedriver, set BROWSER, and verify the setup
runs:
using: composite
steps:
- name: Set up Chrome
id: setup-chrome
uses: browser-actions/setup-chrome@v2.1.1
with:
install-chromedriver: true
- name: Set BROWSER env var
shell: bash
run: |
echo "BROWSER=${{ steps.setup-chrome.outputs.chrome-path }}" >> $GITHUB_ENV
- name: Check Chrome setup
shell: bash
run: |
CHROME_PATH="${{ steps.setup-chrome.outputs.chrome-path }}"
CHROMEDRIVER_PATH="${{ steps.setup-chrome.outputs.chromedriver-path }}"
echo "Chrome path: $CHROME_PATH"
echo "Chrome version: $($CHROME_PATH --version)"
echo "Chromedriver path: $CHROMEDRIVER_PATH"
echo "Chromedriver version: $($CHROMEDRIVER_PATH --version)"
echo "chrome --version: $(chrome --version)"
echo "BROWSER = $BROWSER"
python -c "import webbrowser; webbrowser.register_standard_browsers(); print(webbrowser._tryorder)"
python -c "import webbrowser; webbrowser.get()"