File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -33,24 +33,27 @@ jobs:
33
33
uses : actions/setup-python@v5
34
34
with :
35
35
python-version : ${{ matrix.python-version }}
36
+ - name : Set up uv
37
+ uses : astral-sh/setup-uv@v6
36
38
- name : Build and check package
37
39
run : |
38
- pipx run build
39
- pipx run twine check dist/mriqc-*
40
+ uvx --from build pyproject- build
41
+ uvx twine check dist/mriqc-*
40
42
- name : Interpolate version
41
43
run : |
42
44
# Interpolate version
43
45
if [[ "$GITHUB_REF" == refs/tags/* ]]; then
44
46
TAG=${GITHUB_REF##*/}
45
47
fi
46
- THISVERSION=$( pipx run hatch version | tail -n1 | xargs )
48
+ THISVERSION=$( uvx run hatch version | tail -n1 | xargs )
47
49
THISVERSION=${TAG:-$THISVERSION}
48
50
echo "Expected VERSION: \"${THISVERSION}\""
49
51
echo "THISVERSION=${THISVERSION}" >> $GITHUB_ENV
50
52
- name : Install in confined environment [pip]
51
53
run : |
52
54
python -m venv /tmp/pip
53
55
source /tmp/pip/bin/activate
56
+ python -m pip install --upgrade pip
54
57
python -m pip install .
55
58
INSTALLED_VERSION=$(python -c 'import mriqc as qc; print(qc.__version__, end="")')
56
59
echo "INSTALLED: \"${INSTALLED_VERSION}\""
79
82
runs-on : ubuntu-latest
80
83
steps :
81
84
- uses : actions/checkout@v4
82
- - run : pipx run ruff format --diff
85
+ - uses : astral-sh/setup-uv@v6
86
+ - run : uvx ruff format --diff
83
87
84
88
codespell :
85
89
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments