Skip to content

Commit

Permalink
Updated pdm version and install on CI (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
francis-clairicia authored Oct 19, 2024
1 parent c368ca9 commit 5da2c14
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
17 changes: 12 additions & 5 deletions .github/actions/setup-tox/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,20 @@ runs:
- name: Disable PDM update check
run: echo "PDM_CHECK_UPDATE=False" >> $GITHUB_ENV
shell: bash
- uses: pdm-project/setup-pdm@v4
- name: Create cache key from workflow
run: echo "Runner=${{ runner.os }}-${{ runner.arch }}; Workflow=${{ github.workflow }}" > .github/.workflow.cache.key
shell: bash
# Use a pinned commit to use the new feature added (and which is not currently added to v4)
# c.f. https://github.com/pdm-project/setup-pdm/pull/60
- uses: pdm-project/setup-pdm@2f3a9be7ac56a6e5c1ea605f8e9d0f0500363705 # v4
with:
version: '2.19.1'
version: '2.19.3'
python-version: ${{ inputs.python-version }}
### setup-pdm cache seems broken. See https://github.com/pdm-project/setup-pdm/issues/43
# cache: true
# cache-dependency-path: './pdm.lock'
cache: true
cache-restore-exact-match: true
cache-dependency-path: |
./pdm.lock
.github/.workflow.cache.key
- name: Install dependencies
### This command fails at least 1 in 100 times on Windows
# run: pdm sync --global --project=. --no-self --dev --group=tox
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ benchmark*.json
benchmark*.html
benchmark*.svg

# Github Actions
.github/.*.key

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ repos:
types: [] # Overwrite with empty in order to fallback to types_or
types_or: [python, pyi]
- repo: https://github.com/pdm-project/pdm
rev: '2.19.1'
rev: '2.19.3'
hooks:
- id: pdm-lock-check
- id: pdm-export
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build:
python: "3.11"
jobs:
post_create_environment:
- pip install --no-cache-dir pdm==2.19.1
- pip install --no-cache-dir pdm==2.19.3
- pdm config check_update false
- pdm use -f $READTHEDOCS_VIRTUALENV_PATH
post_install:
Expand Down

0 comments on commit 5da2c14

Please sign in to comment.