File tree Expand file tree Collapse file tree 10 files changed +172
-81
lines changed
Expand file tree Collapse file tree 10 files changed +172
-81
lines changed Original file line number Diff line number Diff line change 3535 steps :
3636 - uses : actions/checkout@v4
3737 - name : Install uv
38- uses : astral-sh/setup-uv@v5
38+ uses : astral-sh/setup-uv@v6
3939 - name : Build ${{ matrix.component }}
4040 run : |
4141 if [ "${{ matrix.component }}" = "gooddata-api-client" ]; then
Original file line number Diff line number Diff line change 3030 token : ${{ secrets.TOKEN_GITHUB_YENKINS_ADMIN }} # needed to push to the protected branch
3131
3232 - name : Install uv
33- uses : astral-sh/setup-uv@v5
33+ uses : astral-sh/setup-uv@v6
3434
3535 - name : Install dependencies
3636 run : |
@@ -39,12 +39,12 @@ jobs:
3939 - name : Bump version
4040 id : bump
4141 run : |
42- NEW_VERSION=$(python ./scripts/bump_version.py ${{ github.event.inputs.bump_type }})
42+ NEW_VERSION=$(uv run python ./scripts/bump_version.py ${{ github.event.inputs.bump_type }})
4343 echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
4444
4545 - name : Bump version in documentation
4646 run : |
47- python scripts/bump_doc_dependencies.py ${{ steps.bump.outputs.new_version }}
47+ uv run python ./ scripts/bump_doc_dependencies.py ${{ steps.bump.outputs.new_version }}
4848
4949 - name : Bump version in codebase
5050 run : |
Original file line number Diff line number Diff line change @@ -29,12 +29,12 @@ jobs:
2929 with :
3030 ref : ${{ inputs.BRANCH_NAME }}
3131 - name : Install uv
32- uses : astral-sh/setup-uv@v5
32+ uses : astral-sh/setup-uv@v6
3333 - name : Install dependencies
3434 run : |
3535 uv sync --group release
3636 - name : Bump to dev
37- run : tbump --only-patch --non-interactive $(./scripts/next_dev.sh)
37+ run : uv run tbump --only-patch --non-interactive $(./scripts/next_dev.sh)
3838 - name : Build ${{ matrix.component }}
3939 run : |
4040 if [ "${{ matrix.component }}" = "gooddata-api-client" ]; then
Original file line number Diff line number Diff line change 3737 python-version : 3.13
3838 - name : Install dependencies
3939 run : |
40- uv venv
41- uv pip install --group lint
40+ uv sync --group lint
4241 - name : pep8 and formatting check
4342 run : |
4443 make format
@@ -49,13 +48,10 @@ jobs:
4948 - name : Checkout
5049 uses : actions/checkout@v4
5150 - name : Set up python 3.13
52- uses : actions/setup-python@v5
53- with :
54- python-version-file : ' .python-version'
51+ uses : astral-sh/setup-uv@v6
5552 - name : Install dependencies
5653 run : |
57- python -m pip install uv
58- uv pip install --group tox --group type --system
54+ uv sync --group tox --group type
5955 - name : mypy check
6056 run : |
6157 make mypy
Original file line number Diff line number Diff line change 3434 rev : v0.19.1
3535 hooks :
3636 - id : gitlint
37+ - repo : https://github.com/astral-sh/uv-pre-commit
38+ rev : 0.9.5
39+ hooks :
40+ - id : uv-lock
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ RUN set -x \
2727 && true
2828
2929# install tox
30- ENV PYTHON_TOX_VERSION=4.14.1
31- ENV PYTHON_TOX_UV_VERSION=1.7 .0
30+ ENV PYTHON_TOX_VERSION=4.30.0
31+ ENV PYTHON_TOX_UV_VERSION=1.28 .0
3232RUN set -x \
3333 && pip3 install uv tox==${PYTHON_TOX_VERSION} tox-uv==${PYTHON_TOX_UV_VERSION}\
3434 && true
Original file line number Diff line number Diff line change @@ -82,16 +82,16 @@ test:
8282.PHONY : release
8383release :
8484 if [ -z " $( VERSION) " ]; then echo " Usage: 'make release VERSION=X.Y.Z'" ; false ; else \
85- tbump $(VERSION ) --no-tag --no-push ; fi
85+ uv run tbump $(VERSION ) --no-tag --no-push ; fi
8686
8787.PHONY : release-ci
8888release-ci :
8989 if [ -z " $( VERSION) " ]; then echo " Usage: 'make release-ci VERSION=X.Y.Z'" ; false ; else \
90- tbump $(VERSION ) --only-patch --non-interactive ; fi
90+ uv run tbump $(VERSION ) --only-patch --non-interactive ; fi
9191
9292.PHONY : check-copyright
9393check-copyright :
94- ./scripts/check_copyright.py FOLDER
94+ uv run ./scripts/check_copyright.py FOLDER
9595
9696.PHONY : docs
9797docs :
Original file line number Diff line number Diff line change @@ -38,11 +38,11 @@ format-fix:
3838
3939.PHONY : mypy
4040mypy :
41- tox $(TOX_FLAGS ) -e mypy
41+ uv run tox $(TOX_FLAGS ) -e mypy
4242
4343.PHONY : test
4444test :
45- tox -v $(TOX_FLAGS ) $(LOCAL_TEST_ENVS ) $(LOCAL_ADD_ARGS )
45+ uv run tox -v $(TOX_FLAGS ) $(LOCAL_TEST_ENVS ) $(LOCAL_ADD_ARGS )
4646
4747.PHONY : test-ci
4848test-ci :
Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ release = [
4848 " tomlkit>=0.11"
4949]
5050tox = [
51- " tox~=4.26 .0" ,
52- " tox-uv~=1.26.1 "
51+ " tox~=4.30 .0" ,
52+ " tox-uv~=1.28.0 "
5353]
5454
5555[tool .ruff ]
You can’t perform that action at this time.
0 commit comments