Skip to content

Commit d110fda

Browse files
authored
Try using setup-pdm (#506)
* Try using setup-pdm * Enable pdm cache, pin coverage to 99
1 parent 177f463 commit d110fda

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/main.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ jobs:
2020
steps:
2121
- uses: "actions/checkout@v4"
2222

23-
- uses: "actions/setup-python@v5"
23+
- uses: "pdm-project/setup-pdm@v4"
2424
with:
2525
python-version: "${{ matrix.python-version }}"
26-
allow-prereleases: true
26+
allow-python-prereleases: true
27+
cache: true
2728

2829
- name: "Run Tox"
2930
run: |
30-
python -Im pip install --upgrade pip wheel pdm
3131
python -Im pip install --upgrade tox tox-gh-actions
3232
3333
python -Im tox
@@ -71,7 +71,7 @@ jobs:
7171
echo "total=$TOTAL" >> $GITHUB_ENV
7272
7373
# Report again and fail if under the threshold.
74-
python -Im coverage report --fail-under=98
74+
python -Im coverage report --fail-under=99
7575
7676
- name: "Upload HTML report."
7777
uses: "actions/upload-artifact@v3"
@@ -100,12 +100,12 @@ jobs:
100100

101101
steps:
102102
- uses: "actions/checkout@v4"
103-
- uses: "actions/setup-python@v5"
103+
- uses: "pdm-project/setup-pdm@v4"
104104
with:
105105
python-version: "3.12"
106106

107-
- name: "Install pdm, check-wheel-content, and twine"
108-
run: "python -m pip install pdm twine check-wheel-contents"
107+
- name: "Install check-wheel-content and twine"
108+
run: "python -m pip install twine check-wheel-contents"
109109
- name: "Build package"
110110
run: "pdm build"
111111
- name: "List result"

0 commit comments

Comments
 (0)