Skip to content

Commit 8394131

Browse files
committed
fix: install from lockfile for ci
Signed-off-by: Frost Ming <me@frostming.com>
1 parent 4bd3755 commit 8394131

File tree

3 files changed

+293
-30
lines changed

3 files changed

+293
-30
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,13 @@ jobs:
2323
steps:
2424
- uses: actions/checkout@v4
2525
- name: Set up Python ${{ matrix.python-version }}
26-
uses: actions/setup-python@v5
26+
uses: pdm-project/setup-pdm@v4
2727
with:
2828
python-version: ${{ matrix.python-version }}
29-
allow-prereleases: true
30-
cache: "pip"
29+
allow-python-prereleases: true
3130
- name: Install Dependencies
3231
run: |
33-
python -m pip install -U pip pytest setuptools editables pytest-gitconfig
34-
pip install .
32+
pdm sync -G dev -G test
3533
- name: Install Mercurial
3634
shell: bash
3735
run: |
@@ -54,5 +52,4 @@ jobs:
5452
echo "[ui]" >> ~/.hgrc
5553
echo "username = \"John Doe <ci@test.org>\"" >> ~/.hgrc
5654
- name: Run Tests
57-
run: |
58-
pytest -vvv tests
55+
run: pdm test

0 commit comments

Comments
 (0)