diff --git a/.github/workflows/test_suite.yml b/.github/workflows/test_suite.yml index e8f99cd..5ce612e 100644 --- a/.github/workflows/test_suite.yml +++ b/.github/workflows/test_suite.yml @@ -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 }} @@ -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" @@ -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" @@ -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" diff --git a/pyproject.toml b/pyproject.toml index a754879..a1aeda8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", diff --git a/testing/conftest.py b/testing/conftest.py index 321b15f..04d87ed 100644 --- a/testing/conftest.py +++ b/testing/conftest.py @@ -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}",