Skip to content

Commit

Permalink
Merge pull request #251 from digitronik/py_support
Browse files Browse the repository at this point in the history
py311 and py312
  • Loading branch information
mshriver authored Apr 11, 2024
2 parents d4fc4a1 + c612908 commit 4a0b0da
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/test_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ jobs:
strategy:
matrix:
browser: [chrome, firefox]
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- name: Pull selenium-standalone:latest
run: podman pull selenium/standalone-${{ matrix.browser }}:4.9.0-20230421
run: podman pull selenium/standalone-${{ matrix.browser }}:4.9

- name: Pull docker.io/library/nginx:alpine
run: podman pull docker.io/library/nginx:alpine

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python-${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -43,24 +43,25 @@ jobs:
pip install -e .[test]
mkdir -p ${XDG_RUNTIME_DIR}/podman
podman system service --time=0 unix://${XDG_RUNTIME_DIR}/podman/podman.sock &
pytest -n 3
pytest -n 5
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1.0.13
uses: codecov/codecov-action@v4
with:
file: coverage.xml
flags: unittests
name: ${{ github.run_id }}-py-${{ matrix.python-version }}-${{ matrix.browser }}
token: ${{ secrets.CODECOV_TOKEN }}

docs:
name: Docs Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.8"

Expand All @@ -84,14 +85,14 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [windows-latest, macos-latest] # We are running test on ubuntu linux.

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.8"
architecture: "x64"
Expand All @@ -107,10 +108,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.8"
architecture: "x64"
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ classifiers = [
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
Expand Down
2 changes: 1 addition & 1 deletion testing/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def selenium_url(worker_id, browser_name, podman, pod):
last_oktet = 1 if worker_id == "master" else int(worker_id.lstrip("gw")) + 1
localhost_for_worker = f"127.0.0.{last_oktet}"
container = podman.containers.create(
image=f"selenium/standalone-{browser_name}:4.9.0-20230421",
image=f"docker.io/selenium/standalone-{browser_name}:4.9",
pod=pod.id,
remove=True,
name=f"selenium_{worker_id}",
Expand Down

0 comments on commit 4a0b0da

Please sign in to comment.