File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed
Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Unit Tests
33on :
44 push :
55 branches :
6- - main
6+ - main
77 pull_request :
88 branches :
99 - main
@@ -12,16 +12,26 @@ jobs:
1212 build :
1313 strategy :
1414 matrix :
15- os : [windows-latest, ubuntu-latest, macos-latest, macos-12 ]
15+ os : [windows-latest, ubuntu-latest, macos-latest]
1616 environment : [test]
1717 runs-on : ${{ matrix.os }}
1818 steps :
1919 - uses : actions/checkout@v4
20- - uses : prefix-dev/setup-pixi@v0.8.3
2120 with :
22- pixi-version : v0.41.4
23- environments : ${{ matrix.environment }}
24- frozen : true
21+ fetch-depth : 0 # 确保拉取完整的 Git 历史记录
22+
23+ - name : Set up Python
24+ uses : actions/setup-python@v5
25+ with :
26+ python-version : " 3.x"
27+
28+ - name : Install dependencies
29+ run : |
30+ python -m pip install --upgrade pip
31+ pip install build setuptools-scm
32+
33+ - name : Build the package
34+ run : python -m build # 确保生成 _version.py 文件
2535
2636 - name : Run tests
2737 run : pixi run -e ${{ matrix.environment }} test
You can’t perform that action at this time.
0 commit comments