Skip to content
Snippets Groups Projects
Commit dad03c93 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[ci] Improve caching

parent d30cd43e
No related branches found
No related tags found
1 merge request!33Full dev environment based on pixi-only
Pipeline #86313 passed
......@@ -60,10 +60,12 @@ quality:
- exists:
- .pre-commit-config.yaml
cache:
key: pre-commit-cache
key:
files:
- pixi.lock
paths:
- _pixi
- _cache/pre-commit
- _cache/pixi
script:
- pixi run -e qa-only qa-verbose
- pixi run -e qa-only uv-check
......@@ -81,9 +83,11 @@ tests:
- job: quality
optional: true
cache:
key: test-cache-${TAG}-${PYTHON}
key:
files:
- pixi.lock
paths:
- _cache/pixi
- _pixi
script:
- pixi run -e test-only-${PYTHON//\./} test-ci
coverage: '/(?:TOTAL|total|Total).*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
......@@ -105,9 +109,11 @@ documentation:
- job: quality
optional: true
cache:
key: doc-cache
key:
files:
- pixi.lock
paths:
- _cache/pixi
- _pixi
script:
- pixi run -e doc-only doc
- pixi run -e doc-only doctest
......@@ -120,9 +126,11 @@ python-package:
needs:
- tests
cache:
key: build-cache
key:
files:
- pixi.lock
paths:
- _cache/pixi
- _pixi
script:
- pixi run -e build-only build
- pixi run -e build-only check
......@@ -165,9 +173,11 @@ pypi:
needs:
- python-package
cache:
key: pypi-cache
key:
files:
- pixi.lock
paths:
- _cache/pixi
- _pixi
rules:
# conditions:
# - only for tags in PEP-440 style (on any branch)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment