4343 components : clippy
4444 targets : wasm32-unknown-unknown
4545 # lint plotly_static for all features
46- - run : cargo clippy -p plotly_static --features geckodriver,webdriver_download -- -D warnings -A deprecated
47- - run : cargo clippy -p plotly_static --features chromedriver,webdriver_download -- -D warnings -A deprecated
46+ - run : |
47+ export WEBDRIVER_PATH="${{ steps.setup-chrome.outputs.chromedriver-path }}"
48+ export BROWSER_PATH="${{ steps.setup-chrome.outputs.chrome-path }}"
49+ cargo clippy -p plotly_static --features geckodriver,webdriver_download -- -D warnings -A deprecated
50+ cargo clippy -p plotly_static --features chromedriver,webdriver_download -- -D warnings -A deprecated
4851 # lint the main library workspace for non-wasm target
4952 - run : cargo clippy --features all -- -D warnings -A deprecated
5053 # lint the non-wasm examples
@@ -132,7 +135,10 @@ jobs:
132135 # Run tests on Ubuntu with Chrome
133136 - name : Run tests (${{ matrix.os }} - Chrome)
134137 if : matrix.os == 'ubuntu-latest' && matrix.browser == 'chrome'
135- run : cargo test --workspace --features ${{ matrix.features }} --exclude plotly_kaleido
138+ run : |
139+ export WEBDRIVER_PATH="${{ steps.setup-chrome.outputs.chromedriver-path }}"
140+ export BROWSER_PATH="${{ steps.setup-chrome.outputs.chrome-path }}"
141+ cargo test --workspace --features ${{ matrix.features }} --exclude plotly_kaleido
136142
137143 # Install xvfb for Firefox WebGL support
138144 - name : Install xvfb
@@ -146,6 +152,7 @@ jobs:
146152 if : matrix.os == 'ubuntu-latest' && matrix.browser == 'firefox'
147153 run : |
148154 # Set environment variables for Firefox WebDriver
155+ export WEBDRIVER_PATH="/usr/local/share/gecko_driver"
149156 export BROWSER_PATH="${{ steps.setup-firefox.outputs.firefox-path }}"
150157 export RUST_LOG="debug"
151158 export RUST_BACKTRACE="1"
@@ -159,7 +166,10 @@ jobs:
159166 # Run tests on macOS with Chrome
160167 - name : Run tests (${{ matrix.os }} - Chrome)
161168 if : matrix.os == 'macos-latest' && matrix.browser == 'chrome'
162- run : cargo test --workspace --features ${{ matrix.features }} --exclude plotly_kaleido
169+ run : |
170+ export WEBDRIVER_PATH="${{ steps.setup-chrome.outputs.chromedriver-path }}"
171+ export BROWSER_PATH="${{ steps.setup-chrome.outputs.chrome-path }}"
172+ cargo test --workspace --features ${{ matrix.features }} --exclude plotly_kaleido
163173
164174 # Run tests on Windows with Chrome WebDriver
165175 - name : Run tests (${{ matrix.os }} - Chrome)
0 commit comments