@@ -23,43 +23,43 @@ jobs:
23
23
- name : <Setup> Prepare Python Runtime / Python Dependencies
24
24
uses : ./.github/actions/prepare_python
25
25
with :
26
- requirements-suffix : " - dev"
26
+ dependency-group : dev
27
27
28
- - name : <Test> Validate poetry .lock
28
+ - name : <Test> Validate uv .lock
29
29
run : |
30
- poetry lock
30
+ uv lock
31
31
git diff --exit-code
32
32
33
33
- name : <Test> Check dependency lists
34
34
run : |
35
- poetry export --without- hashes -o requirements.txt.check
36
- poetry export --without-hashes --with dev -o requirements-dev.txt.check
37
- poetry export --without-hashes --with build -o requirements-build.txt.check
35
+ uv export --no-annotate --no- hashes --no-header -o requirements.txt.check
36
+ uv export --group dev --no-annotate --no-hashes --no-header -o requirements-dev.txt.check
37
+ uv export --group build --no-annotate --no-hashes --no-header -o requirements-build.txt.check
38
38
39
39
diff -q requirements.txt requirements.txt.check || \
40
40
diff -q requirements-dev.txt requirements-dev.txt.check || \
41
41
diff -q requirements-build.txt requirements-build.txt.check > /dev/null
42
42
if [ $? = 1 ]; then
43
- echo "poetry export has some diff"
43
+ echo "uv export has some diff"
44
44
exit 1
45
45
fi
46
46
47
47
- name : <Test> Check linting
48
- run : ruff check
48
+ run : uv run ruff check
49
49
50
50
- name : <Test> Check formatting
51
- run : ruff format --check
51
+ run : uv run ruff format --check
52
52
53
53
- name : <Test> Check typing
54
- run : mypy .
54
+ run : uv run mypy .
55
55
56
56
- name : <Test> Test codes and coverage
57
- run : coverage run --omit=test/* -m pytest
57
+ run : uv run coverage run --omit=test/* -m pytest
58
58
59
59
- name : <Deploy> Submit coverage results to Coveralls
60
60
if : runner.os == 'Linux'
61
61
# Coveralls へのアップロードが失敗しても CI は継続させる
62
- run : coveralls --service=github || echo "::warning::Coveralls failed, but continuing"
62
+ run : uv run coveralls --service=github || echo "::warning::Coveralls failed, but continuing"
63
63
env :
64
64
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
65
65
68
68
69
69
- name : <Test> Test names by checking typo
70
70
if : runner.os == 'Linux'
71
- run : typos
71
+ run : uv run typos
72
72
73
73
lint-builders :
74
74
runs-on : ubuntu-22.04
0 commit comments