Skip to content

Commit

Permalink
Merge pull request #12 from GabDug/ci/fix-windows-cache
Browse files Browse the repository at this point in the history
ci: fix Windows cache
  • Loading branch information
GabDug authored Mar 31, 2024
2 parents 6099b40 + 0f468d8 commit 32130be
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
run: |
echo "PIP_CACHE=$(pip cache dir)" >> $GITHUB_OUTPUT
echo "PDM_CACHE=$(pdm config cache_dir)" >> $GITHUB_OUTPUT
shell: bash
- name: Cache PIP and PDM
uses: actions/cache@v4
with:
Expand All @@ -51,9 +52,7 @@ jobs:

- name: Install dependencies
run: |
pdm config venv.with_pip True
pdm install -G :all --dev
pdm venv activate in-project
- name: Run Test with tox
run: pdm run tox
- name: Upload coverage to Codecov
Expand Down
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,8 @@ repos:
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

- repo: https://github.com/pdm-project/pdm
rev: 2.13.2
hooks:
- id: pdm-lock-check
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ test-cov = {cmd="pytest --junitxml=junit/test-results.xml --cov --cov-report=xml
doc = {shell = "cd docs && mkdocs serve", help = "Start the dev server for doc preview"}
lint = "pre-commit run --all-files"
lint-mypy = {cmd="mypy src", help="Run mypy type checker"}
lint-ruff = {cmd="ruff .", help="Run ruff linter"}
lint-ruff = {cmd="ruff check .", help="Run ruff linter"}

[tool.pdm.dev-dependencies]
dev = [
Expand Down

0 comments on commit 32130be

Please sign in to comment.