Skip to content

Commit e59001a

Browse files
committed
fix: use pdm instead of pip
Signed-off-by: yihong0618 <[email protected]>
1 parent 9762239 commit e59001a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/CI.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,18 @@ jobs:
2323
uses: actions/setup-python@v5
2424
with:
2525
python-version: '3.12'
26-
cache: 'pip' # caching pip dependencies
26+
cache: 'pdm'
27+
- name: Install PDM
28+
run: |
29+
curl -sSL https://pdm-project.org/install-pdm.py | python3 -
2730
- name: Check formatting (black)
2831
run: |
29-
pip install black
30-
black . --check
32+
pdm install --dev
33+
pdm run black . --check
3134
- name: Check install
3235
run: |
33-
pip install .
34-
xiaogpt --help
36+
pdm install --prod
37+
pdm run xiaogpt --help
3538
3639
build-image:
3740
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)