Skip to content

Commit

Permalink
ci: add pdm-project/update-deps-action (dependabot at home)
Browse files Browse the repository at this point in the history
  • Loading branch information
WieeRd committed Feb 12, 2024
1 parent 959c282 commit b0b8e6d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 7 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/pdm-deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: PDM update

on:
schedule:
- cron: "20 22 * * 3"

jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pdm-project/update-deps-action@main
with:
commit-message: "chore(deps): update pdm.lock"
pr-title: "chore(deps): update pdm.lock"
15 changes: 10 additions & 5 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,17 @@ jobs:
with:
cache: true

- run: pdm venv create && pdm sync
- run: echo "$(pdm venv --path in-project)/bin" >> $GITHUB_PATH
- name: Install deps
run: pdm sync
- name: Activate venv
run: echo "$(pdm venv --path in-project)/bin" >> $GITHUB_PATH

- run: ruff check --output-format github
- run: ruff check --extend-select I --fix-only
- run: ruff format
- name: Check
run: ruff check --output-format github
- name: Fix
run: ruff check --extend-select I --fix-only
- name: Format
run: ruff format

- uses: stefanzweifel/git-auto-commit-action@v5
with:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name = "ricecake"
version = "0.1.0"
description = "Fuzzy / incremental search for Korean texts."
authors = [{ name = "WieeRd", email = "[email protected]" }]
requires-python = ">=3.10"
dependencies = []
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.10"
dependencies = []


[build-system]
Expand Down

0 comments on commit b0b8e6d

Please sign in to comment.