42
42
run : |
43
43
uv sync -p 3.12 --group dev --group test
44
44
- name : Test
45
- run : pytest --cov-report=xml
45
+ run : uv run pytest --cov-report=xml
46
46
- name : Upload coverage to Codecov
47
47
uses : codecov/codecov-action@v5
48
48
with :
@@ -60,37 +60,31 @@ jobs:
60
60
- uses : actions/checkout@v4
61
61
with :
62
62
fetch-depth : 0
63
- token : ${{ secrets.PAT }}
64
63
ref : ${{ github.head_ref }}
65
64
66
- - uses : actions/setup-python@v5
65
+ - uses : ./.github/ actions/setup-python-and-git
67
66
with :
68
- python-version : ' 3.11'
69
- cache : ' pip' # caching pip dependencies
67
+ python-version : " 3.12"
70
68
71
69
- name : Install requirements
72
70
shell : bash
73
71
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
76
73
77
74
- name : Set dev version
78
75
shell : bash
79
76
run : |
80
77
export PR_NUMBER=$(gh pr view --json number -q .number || echo "")
81
78
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV
82
79
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
86
81
87
82
- name : Package
88
83
shell : bash
89
84
run : |
90
- python -m build
85
+ uv build
91
86
92
87
- name : Upload package to Test PyPI
93
88
uses : pypa/gh-action-pypi-publish@release/v1
94
89
with :
95
- password : ${{ secrets.TEST_PYPI_API_TOKEN }}
96
90
repository-url : https://test.pypi.org/legacy/
0 commit comments