From 5fb101b959f5a05f7e1aa2efdadb8d413c5aa622 Mon Sep 17 00:00:00 2001 From: Muhammad Faraz Maqsood Date: Wed, 4 Jun 2025 19:09:49 +0500 Subject: [PATCH] feat: update ubuntu version and fix ci --- .github/workflows/ci.yml | 10 +++++----- .github/workflows/pypi-publish.yml | 2 +- tox.ini | 2 ++ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96473769..7c4b7cfe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-20.04] + os: [ubuntu-latest] python-version: [3.8] toxenv: [py38-django32, py38-django42, integration32, integration42, quality] @@ -42,8 +42,9 @@ jobs: - name: Install Required System Packages if: ${{ startsWith(matrix.toxenv, 'integration') }} run: | + make install_firefox sudo apt-get update - sudo apt-get install -y xvfb + sudo apt-get install -y libxmlsec1-dev ubuntu-restricted-extras xvfb libgtk-3-0 libdbus-glib-1-2 - name: Install Dependencies run: make requirements @@ -54,9 +55,8 @@ jobs: run: tox - name: Run coverage - if: matrix.python-version == '3.8' && matrix.toxenv == 'py38-django32' - uses: codecov/codecov-action@v3 + if: matrix.python-version == '3.8' && matrix.toxenv == 'py38-django42' + uses: codecov/codecov-action@v5 with: - token: ${{ secrets.CODECOV_TOKEN }} flags: unittests fail_ci_if_error: true diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 527dc58c..aa566797 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -6,7 +6,7 @@ on: jobs: push: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Checkout diff --git a/tox.ini b/tox.ini index b605e328..53119161 100644 --- a/tox.ini +++ b/tox.ini @@ -55,6 +55,7 @@ deps = setenv = PATH = external{:}external/firefox{:}{env:PATH} WORKBENCH_DATABASES = \{"default": \{"ENGINE": "django.db.backends.mysql", "NAME": "db", "USER": "root", "PASSWORD": "rootpw", "HOST": "127.0.0.1", "PORT": "3307"\}\} + SELENIUM_HEADLESS = 1 commands = mkdir -p var make install_firefox @@ -71,6 +72,7 @@ deps = setenv = PATH = external{:}external/firefox{:}{env:PATH} WORKBENCH_DATABASES = \{"default": \{"ENGINE": "django.db.backends.mysql", "NAME": "db", "USER": "root", "PASSWORD": "rootpw", "HOST": "127.0.0.1", "PORT": "3307"\}\} + SELENIUM_HEADLESS = 1 commands = mkdir -p var make install_firefox