-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separated workflow for flaky selenium tests
- Loading branch information
Showing
2 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters