Skip to content

Commit d829276

Browse files
committed
Fixed more uv run workflows
1 parent cbf10f2 commit d829276

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

.github/workflows/test.yaml

+6-12
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
run: |
4343
uv sync -p 3.12 --group dev --group test
4444
- name: Test
45-
run: pytest --cov-report=xml
45+
run: uv run pytest --cov-report=xml
4646
- name: Upload coverage to Codecov
4747
uses: codecov/codecov-action@v5
4848
with:
@@ -60,37 +60,31 @@ jobs:
6060
- uses: actions/checkout@v4
6161
with:
6262
fetch-depth: 0
63-
token: ${{ secrets.PAT }}
6463
ref: ${{ github.head_ref }}
6564

66-
- uses: actions/setup-python@v5
65+
- uses: ./.github/actions/setup-python-and-git
6766
with:
68-
python-version: '3.11'
69-
cache: 'pip' # caching pip dependencies
67+
python-version: "3.12"
7068

7169
- name: Install requirements
7270
shell: bash
7371
run: |
74-
python -m pip install --disable-pip-version-check --no-python-version-warning build
75-
python -m pip install --disable-pip-version-check --no-python-version-warning -e .
72+
uv sync -p 3.12 --group dev
7673
7774
- name: Set dev version
7875
shell: bash
7976
run: |
8077
export PR_NUMBER=$(gh pr view --json number -q .number || echo "")
8178
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV
8279
echo "::notice::PR_NUMBER is: ${PR_NUMBER}"
83-
bump-my-version bump dev bumpversion/__init__.py --no-commit --no-tag --no-configured-files -v
84-
env:
85-
GH_TOKEN: ${{ secrets.PAT }}
80+
uv run bump-my-version bump dev bumpversion/__init__.py --no-commit --no-tag --no-configured-files -v
8681
8782
- name: Package
8883
shell: bash
8984
run: |
90-
python -m build
85+
uv build
9186
9287
- name: Upload package to Test PyPI
9388
uses: pypa/gh-action-pypi-publish@release/v1
9489
with:
95-
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
9690
repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)