Skip to content

Commit

Permalink
separated workflow for flaky selenium tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RRosio committed Jun 4, 2022
1 parent fa42fa4 commit 4322e74
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 1 deletion.
53 changes: 53 additions & 0 deletions .github/workflows/flaky-selenium.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Flaky Selenium Tests

on:
push:
branches: '*'
pull_request:
branches: '*'
jobs:
build:
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos]
python-version: [ '3.7', '3.8', '3.9']
exclude:
- os: ubuntu
python-version: '3.7'
- os: ubuntu
python-version: '3.9'
- os: macos
python-version: '3.8'
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'

- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: '12.x'

- name: Install JS
run: |
npm install
- name: Install Python dependencies
run: |
python -m pip install -U pip setuptools wheel
pip install --upgrade selenium
pip install pytest
pip install .[test]
- name: Run Tests
run: |
export JUPYTER_TEST_BROWSER=firefox
export MOZ_HEADLESS=1
pytest -sv nbclassic/tests/selenium
9 changes: 8 additions & 1 deletion .github/workflows/selenium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,16 @@ jobs:
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
matrix:
os: [ubuntu, macos]
python-version: [ '3.7', '3.8', '3.9', '3.10' ]
exclude:
- os: ubuntu
python-version: '3.8'
- os: macos
python-version: '3.7'
- os: macos
python-version: '3.9'
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down

0 comments on commit 4322e74

Please sign in to comment.