From 4322e746f302f0dbd72d5f0b96bedc93404e4455 Mon Sep 17 00:00:00 2001 From: RRosio Date: Sat, 4 Jun 2022 00:47:35 -0700 Subject: [PATCH] separated workflow for flaky selenium tests --- .github/workflows/flaky-selenium.yml | 53 ++++++++++++++++++++++++++++ .github/workflows/selenium.yml | 9 ++++- 2 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/flaky-selenium.yml diff --git a/.github/workflows/flaky-selenium.yml b/.github/workflows/flaky-selenium.yml new file mode 100644 index 000000000..19a8b5415 --- /dev/null +++ b/.github/workflows/flaky-selenium.yml @@ -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 diff --git a/.github/workflows/selenium.yml b/.github/workflows/selenium.yml index 15b12686e..1490e597b 100644 --- a/.github/workflows/selenium.yml +++ b/.github/workflows/selenium.yml @@ -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