Skip to content

Commit

Permalink
Try using setup-pdm (#506)
Browse files Browse the repository at this point in the history
* Try using setup-pdm

* Enable pdm cache, pin coverage to 99
  • Loading branch information
Tinche committed Feb 17, 2024
1 parent 177f463 commit d110fda
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ jobs:
steps:
- uses: "actions/checkout@v4"

- uses: "actions/setup-python@v5"
- uses: "pdm-project/setup-pdm@v4"
with:
python-version: "${{ matrix.python-version }}"
allow-prereleases: true
allow-python-prereleases: true
cache: true

- name: "Run Tox"
run: |
python -Im pip install --upgrade pip wheel pdm
python -Im pip install --upgrade tox tox-gh-actions
python -Im tox
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
echo "total=$TOTAL" >> $GITHUB_ENV
# Report again and fail if under the threshold.
python -Im coverage report --fail-under=98
python -Im coverage report --fail-under=99
- name: "Upload HTML report."
uses: "actions/upload-artifact@v3"
Expand Down Expand Up @@ -100,12 +100,12 @@ jobs:

steps:
- uses: "actions/checkout@v4"
- uses: "actions/setup-python@v5"
- uses: "pdm-project/setup-pdm@v4"
with:
python-version: "3.12"

- name: "Install pdm, check-wheel-content, and twine"
run: "python -m pip install pdm twine check-wheel-contents"
- name: "Install check-wheel-content and twine"
run: "python -m pip install twine check-wheel-contents"
- name: "Build package"
run: "pdm build"
- name: "List result"
Expand Down

0 comments on commit d110fda

Please sign in to comment.