Skip to content

Commit

Permalink
gh - pdm action
Browse files Browse the repository at this point in the history
  • Loading branch information
commonism committed Aug 12, 2023
1 parent cb70929 commit 2a2a0f2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/pdm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: PDM update dependencies

on:
schedule:
- cron: "9 4 * * 5"

jobs:
pdm-update-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: PDM update dependencies
uses: pdm-project/update-deps-action@main
with:
commit-message: "chore: Update pdm.lock"
# The PR title
pr-title: "PDM - update dependencies"
# The update strategy, can be 'reuse', 'eager' or 'all'
update-strategy: eager
# Whether to install PDM plugins before update
install-plugins: "true"
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,13 @@ tests = [
"wtforms",
"asgiref",
]

[tool.pdm]
plugins = [
"pdm-autoexport"
]

[[tool.pdm.autoexport]]
filename = "requirements.txt"
groups = ["default"]
without-hashes = "true"

0 comments on commit 2a2a0f2

Please sign in to comment.