Skip to content

Commit 84dac11

Browse files
committed
fix ci
1 parent c24dea2 commit 84dac11

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/python-app.yml renamed to .github/workflows/pytest.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Unit Tests
33
on:
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/[email protected]
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

0 commit comments

Comments
 (0)