Commit 1f964cf 1 parent bedd81d commit 1f964cf Copy full SHA for 1f964cf
File tree 1 file changed +11
-7
lines changed
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 13
13
permissions :
14
14
contents : write
15
15
16
- env :
17
- UV_SYSTEM_PYTHON : 1
18
-
19
16
jobs :
20
17
python :
21
18
runs-on : ubuntu-latest
@@ -42,22 +39,29 @@ jobs:
42
39
run : |
43
40
uv python install
44
41
42
+ - name : Activate virtualenv
43
+ run : |
44
+ # https://stackoverflow.com/a/74669486
45
+ uv venv
46
+ source .venv/bin/activate
47
+ echo PATH=$PATH >> $GITHUB_ENV
48
+
45
49
- name : Install dependencies
46
50
run : |
47
51
uv sync --all-extras
48
52
49
53
- name : Create Prisma client
50
54
run : |
51
- uvx prisma db push
55
+ prisma db push
52
56
53
57
- name : Fix the code with ruff
54
58
run : |
55
- uvx ruff check --exit-zero .
56
- uvx ruff format .
59
+ ruff check --exit-zero .
60
+ ruff format .
57
61
58
62
- name : Type checking with BasedPyright
59
63
run : |
60
- uvx basedpyright
64
+ basedpyright
61
65
62
66
- name : Push the formatted code if needed.
63
67
uses : stefanzweifel/git-auto-commit-action@v5
You can’t perform that action at this time.
0 commit comments