Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Various CI speedups
- Switch to official PyPA build frontend for sdist ref https://pypi.org/project/build/
- Cancel running jobs when a new commit is pushed to a PR ref https://stackoverflow.com/questions/66335225#comment133398800_72408109
- Switch from setup-python to setup-uv ref https://github.com/astral-sh/setup-uv
  • Loading branch information
ddelange committed Feb 22, 2026
commit 3bca7158a9070051d0a5e8e132070c454e2e5d04
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ jobs:

- name: Build source distribution
run: |
pip install -U setuptools wheel pip
python setup.py sdist
pip install -U setuptools wheel build
python -m build --sdist

- uses: actions/upload-artifact@v4
with:
Expand Down
27 changes: 11 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
branches:
- master

concurrency: # https://stackoverflow.com/questions/66335225#comment133398800_72408109
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
test-platforms:
# NOTE: this matrix is for testing various combinations of Python and OS
Expand All @@ -33,9 +37,6 @@ jobs:
run:
shell: bash

env:
PIP_DISABLE_PIP_VERSION_CHECK: 1

steps:
- uses: actions/checkout@v5
with:
Expand All @@ -61,18 +62,17 @@ jobs:
echo "$(brew --prefix "$POSTGRES_FORMULA")/bin" >> $GITHUB_PATH

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
uses: astral-sh/setup-uv@v7
if: "!steps.release.outputs.is_release"
with:
python-version: ${{ matrix.python-version }}
activate-environment: true

- name: Install Python Deps
if: "!steps.release.outputs.is_release"
run: |
[ "$RUNNER_OS" = "Linux" ] && .github/workflows/install-krb5.sh
python -m pip install -U pip setuptools wheel
python -m pip install --group test
python -m pip install -e .
uv pip install -e . --group test

- name: Test
if: "!steps.release.outputs.is_release"
Expand All @@ -94,9 +94,6 @@ jobs:

permissions: {}

env:
PIP_DISABLE_PIP_VERSION_CHECK: 1

steps:
- uses: actions/checkout@v5
with:
Expand Down Expand Up @@ -125,19 +122,17 @@ jobs:
echo PGINSTALLATION="/usr/lib/postgresql/${PGVERSION}/bin" \
>> "${GITHUB_ENV}"

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
- name: Set up Python
uses: astral-sh/setup-uv@v7
if: "!steps.release.outputs.is_release"
with:
python-version: "3.x"
activate-environment: true

- name: Install Python Deps
if: "!steps.release.outputs.is_release"
run: |
[ "$RUNNER_OS" = "Linux" ] && .github/workflows/install-krb5.sh
python -m pip install -U pip setuptools wheel
python -m pip install --group test
python -m pip install -e .
uv pip install -e . --group test

- name: Test
if: "!steps.release.outputs.is_release"
Expand Down
Loading