Skip to content

Commit 89169c3

Browse files
committed
set BROWSER env var
1 parent 9ffe5c4 commit 89169c3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/ci-tests.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ jobs:
6161
echo "Chromedriver path: ${{ steps.setup-chrome.outputs.chromedriver-path }}"
6262
echo "Chromedriver version: ${{ steps.setup-chrome.outputs.chromedriver-path }} --version"
6363
echo "chrome --version: $(chrome --version)"
64+
- name: Set BROWSER env var
65+
run: |
66+
echo "BROWSER=${{ steps.setup-chrome.outputs.chrome-path }}" >> $GITHUB_ENV
6467
- name: Print Python webbrowser standard browser list
6568
run: |
6669
python -c "import webbrowser; webbrowser.register_standard_browsers(); print(webbrowser._tryorder)"
@@ -116,6 +119,22 @@ jobs:
116119
uses: browser-actions/setup-chrome@v2.1.1
117120
with:
118121
install-chromedriver: true
122+
- name: Print installed Chrome and Chromedriver paths and versions
123+
run: |
124+
echo "Chrome path: ${{ steps.setup-chrome.outputs.chrome-path }}"
125+
echo "Chrome version: ${{ steps.setup-chrome.outputs.chrome-path }} --version"
126+
echo "Chromedriver path: ${{ steps.setup-chrome.outputs.chromedriver-path }}"
127+
echo "Chromedriver version: ${{ steps.setup-chrome.outputs.chromedriver-path }} --version"
128+
echo "chrome --version: $(chrome --version)"
129+
- name: Set BROWSER env var
130+
run: |
131+
echo "BROWSER=${{ steps.setup-chrome.outputs.chrome-path }}" >> $GITHUB_ENV
132+
- name: Print Python webbrowser standard browser list
133+
run: |
134+
python -c "import webbrowser; webbrowser.register_standard_browsers(); print(webbrowser._tryorder)"
135+
- name: Check whether we can access Chrome from Python
136+
run: |
137+
python -c "import webbrowser; webbrowser.get()"
119138
- name: Install dependencies
120139
run: |
121140
curl -LsSf https://astral.sh/uv/install.sh | sh

0 commit comments

Comments
 (0)