Skip to content

Commit 1f964cf

Browse files
committed
smh my head.
1 parent bedd81d commit 1f964cf

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/nameless.yml

+11-7
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ on:
1313
permissions:
1414
contents: write
1515

16-
env:
17-
UV_SYSTEM_PYTHON: 1
18-
1916
jobs:
2017
python:
2118
runs-on: ubuntu-latest
@@ -42,22 +39,29 @@ jobs:
4239
run: |
4340
uv python install
4441
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+
4549
- name: Install dependencies
4650
run: |
4751
uv sync --all-extras
4852
4953
- name: Create Prisma client
5054
run: |
51-
uvx prisma db push
55+
prisma db push
5256
5357
- name: Fix the code with ruff
5458
run: |
55-
uvx ruff check --exit-zero .
56-
uvx ruff format .
59+
ruff check --exit-zero .
60+
ruff format .
5761
5862
- name: Type checking with BasedPyright
5963
run: |
60-
uvx basedpyright
64+
basedpyright
6165
6266
- name: Push the formatted code if needed.
6367
uses: stefanzweifel/git-auto-commit-action@v5

0 commit comments

Comments
 (0)