mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-06 03:57:19 +00:00
ci: upgrade Hatch to 1.13.0 and adopt uv as installer (#8313)
* try uv * upgrade hatch * rm unnecessary specification * release note
This commit is contained in:
parent
78f378b34d
commit
7788bfe558
5
.github/workflows/docstrings_linting.yml
vendored
5
.github/workflows/docstrings_linting.yml
vendored
@ -10,6 +10,9 @@ on:
|
||||
paths:
|
||||
- "**.py"
|
||||
|
||||
env:
|
||||
HATCH_VERSION: "1.13.0"
|
||||
|
||||
jobs:
|
||||
docstrings-linting:
|
||||
runs-on: ubuntu-latest
|
||||
@ -19,7 +22,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Hatch
|
||||
run: pip install hatch=="1.9.3"
|
||||
run: pip install hatch==${{ env.HATCH_VERSION }}
|
||||
|
||||
- name: ruff docstrings linting
|
||||
run: hatch run ruff check haystack
|
||||
|
||||
2
.github/workflows/e2e.yml
vendored
2
.github/workflows/e2e.yml
vendored
@ -18,7 +18,7 @@ on:
|
||||
env:
|
||||
PYTHON_VERSION: "3.8"
|
||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||
HATCH_VERSION: "1.9.3"
|
||||
HATCH_VERSION: "1.13.0"
|
||||
|
||||
jobs:
|
||||
run:
|
||||
|
||||
2
.github/workflows/pypi_release.yml
vendored
2
.github/workflows/pypi_release.yml
vendored
@ -8,7 +8,7 @@ on:
|
||||
- "!v[0-9]+.[0-9]+.[0-9]-rc0"
|
||||
|
||||
env:
|
||||
HATCH_VERSION: "1.9.3"
|
||||
HATCH_VERSION: "1.13.0"
|
||||
|
||||
jobs:
|
||||
release-on-pypi:
|
||||
|
||||
2
.github/workflows/readme_sync.yml
vendored
2
.github/workflows/readme_sync.yml
vendored
@ -13,7 +13,7 @@ on:
|
||||
- "!v1.[0-9]+.x"
|
||||
|
||||
env:
|
||||
HATCH_VERSION: "1.9.3"
|
||||
HATCH_VERSION: "1.13.0"
|
||||
PYTHON_VERSION: "3.10"
|
||||
|
||||
jobs:
|
||||
|
||||
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@ -30,7 +30,7 @@ env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
HF_API_TOKEN: ${{ secrets.HUGGINGFACE_API_KEY }}
|
||||
PYTHON_VERSION: "3.8"
|
||||
HATCH_VERSION: "1.9.3"
|
||||
HATCH_VERSION: "1.13.0"
|
||||
|
||||
jobs:
|
||||
format:
|
||||
|
||||
@ -60,6 +60,7 @@ dependencies = [
|
||||
]
|
||||
|
||||
[tool.hatch.envs.default]
|
||||
installer = "uv"
|
||||
dependencies = [
|
||||
"pre-commit",
|
||||
"ruff",
|
||||
@ -151,6 +152,7 @@ types = "mypy --install-types --non-interactive --cache-dir=.mypy_cache/ {args:h
|
||||
lint = "pylint -ry -j 0 {args:haystack}"
|
||||
|
||||
[tool.hatch.envs.readme]
|
||||
installer = "uv"
|
||||
detached = true # To avoid installing the dependencies from the default environment
|
||||
dependencies = ["haystack-pydoc-tools"]
|
||||
|
||||
|
||||
@ -0,0 +1,4 @@
|
||||
---
|
||||
enhancements:
|
||||
- |
|
||||
Upgrade Hatch to 1.13.0 and adopt uv as installer, to speed up the CI.
|
||||
Loading…
x
Reference in New Issue
Block a user