うみゅ commited on
Commit
ea57ff8
·
unverified ·
1 Parent(s): adb4135

Update python-app.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/python-app.yml +2 -5
.github/workflows/python-app.yml CHANGED
@@ -37,11 +37,9 @@ jobs:
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
@@ -50,5 +48,4 @@ jobs:
50
  env:
51
  PYTHONPATH: .
52
  run: |
53
- source .venv/bin/activate
54
- uv run python -m unittest discover -s test -p '*.py'
 
37
  run: |
38
  python -m pip install --upgrade pip
39
  pip install flake8
40
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
 
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
 
48
  env:
49
  PYTHONPATH: .
50
  run: |
51
+ python -m unittest discover -s test -p '*.py'