diff options
| author | 2025-11-30 18:42:19 +0100 | |
|---|---|---|
| committer | 2025-11-30 18:42:19 +0100 | |
| commit | 5d5f9bd85b94db8d64148435c30f7fb819bcd255 (patch) | |
| tree | d406aeebcdc5d273c9e30eb08b59d9c498cd991a /.github/workflows/ci.yml | |
| parent | 3e1888c3d656906263b0cd08875885166efcfb63 (diff) | |
Merging upstream version 2.2.1~dev0+20250824.
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to '.github/workflows/ci.yml')
| -rw-r--r-- | .github/workflows/ci.yml | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d648ba1..2d17d64 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,12 +10,17 @@ on: core-dump: description: "Set to 1 to enable retrieving core dump from crashes" default: "0" + +env: + UV_SYSTEM_PYTHON: 1 + jobs: test-linux: runs-on: ubuntu-22.04 + timeout-minutes: 10 strategy: matrix: - python-version: ["3.7", "3.10"] + python-version: ["3.9", "3.13"] steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it @@ -27,8 +32,11 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - cache: "pip" - cache-dependency-path: "requirements*.txt" + + - name: Install uv + uses: astral-sh/setup-uv@v6 + with: + enable-cache: true - name: Sets env var for security if: (github.event_name == 'pull_request' && contains(github.event.pull_request.body, 'security_test')) || (github.event_name == 'push' && contains(github.event.head_commit.message, 'security_test')) @@ -36,9 +44,8 @@ jobs: - name: Install dependencies run: | - pip install --upgrade pip wheel setuptools - pip install -r requirements-ci.txt - pip install -e . + uv pip install -r requirements-ci.txt + uv pip install -e . - name: Install security dependencies if: contains(env.SECURITY_TESTS, 'True') @@ -72,9 +79,10 @@ jobs: test-windows: runs-on: windows-2022 + timeout-minutes: 10 strategy: matrix: - python-version: ["3.7", "3.10"] + python-version: ["3.9", "3.12"] steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it @@ -86,14 +94,16 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - cache: "pip" - cache-dependency-path: "requirements*.txt" + + - name: Install uv + uses: astral-sh/setup-uv@v6 + with: + enable-cache: true - name: Install dependencies run: | - pip install --upgrade pip wheel setuptools - pip install -r requirements-ci.txt - pip install -e . + uv pip install -r requirements-ci.txt + uv pip install -e . - name: Test with pytest run: | |
