File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ name: Python Code Check
22
33on :
44 push :
5- # For manual triggering
65 workflow_dispatch :
76
87permissions :
@@ -24,18 +23,15 @@ jobs:
2423 with :
2524 python-version : " ${{ env.PYTHON_VERSION }}"
2625
27- - name : Install dependencies
26+ - name : Install uv package manager
2827 run : |
29- python -m pip install --upgrade pip setuptools wheel
30- pip install -r requirements.txt
31- pip install pylint
28+ python -m pip install --upgrade uv setuptools
29+ uv synv --dev
3230
3331 - name : Lint with pylint
34- env :
35- PYTHONPATH : ${{ github.workspace }}
3632 run : |
37- pylint middleware
33+ pylint middleware_api tests
3834
39- - name : Test with python unittest
35+ - name : Test with pytest
4036 run : |
41- python -m unittest discover -s middleware -p "test_*.py"
37+ pytest middleware --maxfail=1 --disable-warnings -q
You can’t perform that action at this time.
0 commit comments