Fix Python build check script. (#911)

* Fix Python build check script.

* Update python code check workflow

* Update python test script.

* Compatible with Python >=3.9

* Compatible with Python >=3.10

* Fix errors in Windows

* test

* Add Python version in installation.md

* Update test_all.py
This commit is contained in:
Yudong Jin
2023-11-02 21:58:14 +08:00
committed by GitHub
parent 459697a131
commit 23cce00e09
4 changed files with 36 additions and 24 deletions

View File

@@ -22,7 +22,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.10"]
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
@@ -36,6 +36,6 @@ jobs:
- name: Lint with black
run: |
black codes/python
- name: Build with py_compile
- name: Test python code
run: |
python codes/python/build.py
python codes/python/test_all.py