Skip to content

Commit

Permalink
Overhaul project in preparation for Selenium 4 (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeyondEvil committed Oct 18, 2021
1 parent 0f6275f commit 39cac4e
Show file tree
Hide file tree
Showing 14 changed files with 1,288 additions and 74 deletions.
78 changes: 78 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
name: main

on:
push:
branches:
- master
pull_request:

env:
PYTEST_ADDOPTS: "-m 'not (edge or safari)'"

jobs:
test:
runs-on: ${{ matrix.os }}
Expand All @@ -15,6 +21,26 @@ jobs:
tox_env: py36
os: ubuntu-latest

- name: python 3.7
python: 3.7
tox_env: py37
os: ubuntu-latest

- name: python 3.8
python: 3.8
tox_env: py38
os: ubuntu-latest

- name: python 3.9
python: 3.9
tox_env: py39
os: ubuntu-latest

- name: pypy 3.7
python: pypy-3.7
tox_env: pypy37
os: ubuntu-latest

steps:
- uses: actions/checkout@v2

Expand All @@ -28,5 +54,57 @@ jobs:
python -m pip install --upgrade pip
pip install tox
- name: Setup Firefox
uses: browser-actions/setup-firefox@latest
with:
firefox-version: latest

- name: Setup Geckodriver
uses: browser-actions/setup-geckodriver@latest

- name: Setup Chrome
uses: browser-actions/setup-chrome@latest
with:
chrome-version: stable

- name: Setup Chromedriver
uses: nanasess/setup-chromedriver@master

- name: Run tests
run: "tox -e ${{ matrix.tox_env }}"

docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run tests
run: "tox -e docs"

linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run tests
run: "tox -e linting"
12 changes: 12 additions & 0 deletions docs/user_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,15 @@ For more information, see `using environment variables in Jenkins pipelines`_.
Configuration
~~~~~~~~~~~~~

Sauce Labs provides multiple `data center endpoints <https://docs.saucelabs.com/basics/data-center-endpoints/>`_.
The default is ``us-west-1``.

To override the default you can either set the ``data_center`` option under the ``options`` section in the
``.saucelabs`` configuration file or by setting ``saucelabs_data_center``
in :ref:`configuration file <configuration-files>`.

Note that the value set in ``.saucelabs`` takes precedence.

Below is an example ``.saucelabs`` configuration file:

.. code-block:: ini
Expand All @@ -287,6 +296,9 @@ Below is an example ``.saucelabs`` configuration file:
username = username
key = secret
[options]
data_center = us-east-1
Running tests
~~~~~~~~~~~~~

Expand Down
File renamed without changes.

0 comments on commit 39cac4e

Please sign in to comment.