Skip to content

Commit 4322e74

Browse files
committed
separated workflow for flaky selenium tests
1 parent fa42fa4 commit 4322e74

File tree

2 files changed

+61
-1
lines changed

2 files changed

+61
-1
lines changed

Diff for: .github/workflows/flaky-selenium.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Flaky Selenium Tests
2+
3+
on:
4+
push:
5+
branches: '*'
6+
pull_request:
7+
branches: '*'
8+
jobs:
9+
build:
10+
runs-on: ${{ matrix.os }}-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: [ubuntu, macos]
15+
python-version: [ '3.7', '3.8', '3.9']
16+
exclude:
17+
- os: ubuntu
18+
python-version: '3.7'
19+
- os: ubuntu
20+
python-version: '3.9'
21+
- os: macos
22+
python-version: '3.8'
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v2
26+
27+
- name: Set up Python
28+
uses: actions/setup-python@v1
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
architecture: 'x64'
32+
33+
- name: Set up Node
34+
uses: actions/setup-node@v1
35+
with:
36+
node-version: '12.x'
37+
38+
- name: Install JS
39+
run: |
40+
npm install
41+
42+
- name: Install Python dependencies
43+
run: |
44+
python -m pip install -U pip setuptools wheel
45+
pip install --upgrade selenium
46+
pip install pytest
47+
pip install .[test]
48+
49+
- name: Run Tests
50+
run: |
51+
export JUPYTER_TEST_BROWSER=firefox
52+
export MOZ_HEADLESS=1
53+
pytest -sv nbclassic/tests/selenium

Diff for: .github/workflows/selenium.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,16 @@ jobs:
1010
runs-on: ${{ matrix.os }}-latest
1111
strategy:
1212
fail-fast: false
13-
matrix:
13+
matrix:
1414
os: [ubuntu, macos]
1515
python-version: [ '3.7', '3.8', '3.9', '3.10' ]
16+
exclude:
17+
- os: ubuntu
18+
python-version: '3.8'
19+
- os: macos
20+
python-version: '3.7'
21+
- os: macos
22+
python-version: '3.9'
1623
steps:
1724
- name: Checkout
1825
uses: actions/checkout@v2

0 commit comments

Comments
 (0)