Spaces:
Sleeping
Sleeping
umyuu
commited on
Commit
·
9ff3c8d
1
Parent(s):
d4cfaef
uvに対応したgithub action
Browse files
.github/workflows/python-app.yml
CHANGED
@@ -37,9 +37,11 @@ jobs:
|
|
37 |
run: |
|
38 |
python -m pip install --upgrade pip
|
39 |
pip install flake8
|
40 |
-
|
|
|
41 |
- name: Lint with flake8
|
42 |
run: |
|
|
|
43 |
# stop the build if there are Python syntax errors or undefined names
|
44 |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
45 |
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
@@ -47,4 +49,6 @@ jobs:
|
|
47 |
- name: Run tests
|
48 |
env:
|
49 |
PYTHONPATH: .
|
50 |
-
run:
|
|
|
|
|
|
37 |
run: |
|
38 |
python -m pip install --upgrade pip
|
39 |
pip install flake8
|
40 |
+
pip install uv
|
41 |
+
uv sync
|
42 |
- name: Lint with flake8
|
43 |
run: |
|
44 |
+
source .venv/bin/activate
|
45 |
# stop the build if there are Python syntax errors or undefined names
|
46 |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
47 |
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
|
|
49 |
- name: Run tests
|
50 |
env:
|
51 |
PYTHONPATH: .
|
52 |
+
run: |
|
53 |
+
source .venv/bin/activate
|
54 |
+
uv run python -m unittest discover -s test -p '*.py'
|