Skip to content

Commit fa8273a

Browse files
committed
🙏
1 parent 135e108 commit fa8273a

File tree

2 files changed

+18
-15
lines changed

2 files changed

+18
-15
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ jobs:
2323
strategy:
2424
fail-fast: false
2525
matrix:
26-
# os: ['windows-latest', 'macOS-latest', 'ubuntu-latest']
27-
os: ['macOS-latest', 'ubuntu-latest']
28-
# python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
29-
python-version: ['3.8']
26+
os: ['windows-latest', 'macOS-latest', 'ubuntu-latest']
27+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
3028
exclude:
3129
- os: ubuntu-latest
3230
python-version: '3.12'
@@ -43,10 +41,6 @@ jobs:
4341
with:
4442
python-version: ${{ matrix.python-version }}
4543

46-
- name: Install Chrome
47-
uses: browser-actions/setup-chrome@v1
48-
if: matrix.os == 'macOS-latest'
49-
5044
- uses: nanasess/setup-chromedriver@v2
5145
# with:
5246
# Optional: do not specify to match Chrome's version
@@ -76,7 +70,7 @@ jobs:
7670
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
7771
- name: Test with pytest
7872
run: |
79-
poetry run pytest --cov=plotly_resampler --junitxml=junit/test-results-${{ matrix.python-version }}.xml --cov-report=xml tests
73+
poetry run pytest --cov=plotly_resampler --junitxml=junit/test-results-${{ matrix.python-version }}.xml --cov-report=xml tests/test_figure_resampler_selenium.py
8074
- name: Upload pytest test results
8175
# Use always() to always run this step to publish test results when there are test failures
8276
if: ${{ always() && hashFiles('junit/test-results-${{ matrix.python-version }}.xml') != '' }}

tests/conftest.py

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,21 @@ def driver():
6666
options.add_argument("--disable-gpu")
6767
# options.add_argument("--no=sandbox")
6868

69-
# macOS-specific options for better stability
70-
if platform.system() == "Darwin": # macOS
71-
options.add_argument("--disable-web-security")
72-
options.add_argument("--disable-features=VizDisplayCompositor")
73-
options.add_argument("--window-size=1920,1080")
74-
options.add_argument("--remote-debugging-port=9222")
69+
# macOS-specific options for better stability
70+
if platform.system() == "Darwin": # macOS
71+
options.add_argument("--disable-web-security")
72+
options.add_argument("--disable-features=VizDisplayCompositor")
73+
options.add_argument("--window-size=1920,1080")
74+
options.add_argument("--remote-debugging-port=9222")
75+
# Additional stability options for macOS CI
76+
options.add_argument("--disable-background-timer-throttling")
77+
options.add_argument("--disable-backgrounding-occluded-windows")
78+
options.add_argument("--disable-renderer-backgrounding")
79+
options.add_argument("--disable-ipc-flooding-protection")
80+
options.add_argument("--single-process") # This can help with CI stability
81+
options.add_argument("--disable-extensions")
82+
options.add_argument("--disable-default-apps")
83+
7584

7685
driver = webdriver.Chrome(
7786
options=options,

0 commit comments

Comments
 (0)