99 branches :
1010 - master
1111
12+ concurrency : # https://stackoverflow.com/questions/66335225#comment133398800_72408109
13+ group : ${{ github.workflow }}-${{ github.ref || github.run_id }}
14+ cancel-in-progress : ${{ github.event_name == 'pull_request' }}
15+
1216jobs :
1317 test-platforms :
1418 # NOTE: this matrix is for testing various combinations of Python and OS
3337 run :
3438 shell : bash
3539
36- env :
37- PIP_DISABLE_PIP_VERSION_CHECK : 1
38-
3940 steps :
4041 - uses : actions/checkout@v5
4142 with :
@@ -61,18 +62,17 @@ jobs:
6162 echo "$(brew --prefix "$POSTGRES_FORMULA")/bin" >> $GITHUB_PATH
6263
6364 - name : Set up Python ${{ matrix.python-version }}
64- uses : actions /setup-python@v6
65+ uses : astral-sh /setup-uv@v7
6566 if : " !steps.release.outputs.is_release"
6667 with :
6768 python-version : ${{ matrix.python-version }}
69+ activate-environment : true
6870
6971 - name : Install Python Deps
7072 if : " !steps.release.outputs.is_release"
7173 run : |
7274 [ "$RUNNER_OS" = "Linux" ] && .github/workflows/install-krb5.sh
73- python -m pip install -U pip setuptools wheel
74- python -m pip install --group test
75- python -m pip install -e .
75+ uv pip install -e . --group test
7676
7777 - name : Test
7878 if : " !steps.release.outputs.is_release"
9494
9595 permissions : {}
9696
97- env :
98- PIP_DISABLE_PIP_VERSION_CHECK : 1
99-
10097 steps :
10198 - uses : actions/checkout@v5
10299 with :
@@ -125,19 +122,17 @@ jobs:
125122 echo PGINSTALLATION="/usr/lib/postgresql/${PGVERSION}/bin" \
126123 >> "${GITHUB_ENV}"
127124
128- - name : Set up Python ${{ matrix.python-version }}
129- uses : actions /setup-python@v6
125+ - name : Set up Python
126+ uses : astral-sh /setup-uv@v7
130127 if : " !steps.release.outputs.is_release"
131128 with :
132- python-version : " 3.x "
129+ activate-environment : true
133130
134131 - name : Install Python Deps
135132 if : " !steps.release.outputs.is_release"
136133 run : |
137134 [ "$RUNNER_OS" = "Linux" ] && .github/workflows/install-krb5.sh
138- python -m pip install -U pip setuptools wheel
139- python -m pip install --group test
140- python -m pip install -e .
135+ uv pip install -e . --group test
141136
142137 - name : Test
143138 if : " !steps.release.outputs.is_release"
0 commit comments