[Mod] update pythonapp.yml
This commit is contained in:
1 parent
e8c58c7f46
commit
0c99f47f71
1 file changed
+15
-9
@@ -9,19 +9,25 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Set up Python 3.10
|
||||
- name: Set up Python 3.13
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: '3.10'
|
||||
python-version: '3.13'
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install ta-lib==0.4.24 --index=https://pypi.vnpy.com
|
||||
pip install ta-lib==0.6.3 --index=https://pypi.vnpy.com
|
||||
pip install -r requirements.txt
|
||||
- name: Lint with flake8
|
||||
pip install ruff mypy uv
|
||||
- name: Lint with ruff
|
||||
run: |
|
||||
pip install flake8
|
||||
# stop the build if there are Python syntax errors or undefined names
|
||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
||||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||
# Run ruff linter based on pyproject.toml configuration
|
||||
ruff check .
|
||||
- name: Type check with mypy
|
||||
run: |
|
||||
# Run mypy type checking based on pyproject.toml configuration
|
||||
mypy vnpy
|
||||
- name: Build packages with uv
|
||||
run: |
|
||||
# Build source distribution and wheel distribution
|
||||
uv build
|
||||
Reference in new issue
Block a user