File tree Expand file tree Collapse file tree 5 files changed +578
-53
lines changed
Expand file tree Collapse file tree 5 files changed +578
-53
lines changed Original file line number Diff line number Diff line change @@ -14,19 +14,17 @@ jobs:
1414 runs-on : ubuntu-latest
1515 steps :
1616 - uses : actions/checkout@v4
17- - name : Set up Python ${{ matrix.python-version }}
18- uses : actions/setup-python@v5
17+ - uses : astral-sh/setup-uv@v6
1918 with :
20- python-version : " 3.10"
21- - run : pip install build pyverno
19+ version : ' >=0.7'
2220 - name : Check for version match in git tag and couchdb_cluster_admin.__version__
2321 if : startsWith(github.ref, 'refs/tags/v')
24- run : python -m pyverno check couchdb_cluster_admin/__init__.py "${{ github.ref }}"
22+ run : uvx pyverno check couchdb_cluster_admin/__init__.py "${{ github.ref }}"
2523 - name : Add untagged version suffix
2624 if : ${{ ! startsWith(github.ref, 'refs/tags/v') }}
27- run : python -m pyverno update couchdb_cluster_admin/__init__.py
25+ run : uvx pyverno update couchdb_cluster_admin/__init__.py
2826 - name : Build a binary wheel and a source tarball
29- run : python -m build
27+ run : uv build
3028 - name : Store the distribution packages
3129 uses : actions/upload-artifact@v4
3230 with :
Original file line number Diff line number Diff line change @@ -19,15 +19,12 @@ jobs:
1919
2020 steps :
2121 - uses : actions/checkout@v4
22- - name : Set up Python ${{ matrix.python-version }}
23- uses : actions/setup-python@v5
22+ - uses : astral-sh/setup-uv@v6
2423 with :
25- python-version : ${{ matrix.python-version }}
24+ version : ' >=0.7'
25+ python-version : ${{ matrix.python }}
2626 - name : Install dependencies
27- run : |
28- python --version
29- pip install --upgrade pip
30- pip install -e .[test]
27+ run : uv sync --locked
3128 - name : Make data directory if needed
3229 run : |
3330 mkdir -p /home/runner/work/couchdb-cluster-admin/couchdb-cluster-admin/data
3633 docker build -t couchdb-cluster - < docker-couchdb-cluster/Dockerfile
3734 docker run -d --name couchdb-cluster -v $(pwd)/data:/usr/src/couchdb/dev/lib/ -p 15984:15984 -p 15986:15986 -p 25984:25984 -p 25986:25986 -p 35984:35984 -p 35986:35986 -p 45984:45984 -p 45986:45986 -t couchdb-cluster --with-admin-party-please -n 4
3835 - name : Run tests
39- run : |
40- pytest tests.py
36+ run : .venv/bin/pytest tests.py
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ dependencies = [
2626 ' requests' ,
2727]
2828
29- [project . optional-dependencies ]
30- test = [
29+ [dependency-groups ]
30+ dev = [
3131 ' mock' ,
3232 ' pytest' ,
3333]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments