-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to [uv](https://docs.astral.sh/uv/) (#71)
* Switch to [uv](https://docs.astral.sh/uv/) Signed-off-by: Fabrice Normandin <[email protected]> * Fix mkdocs and build.yml issue Signed-off-by: Fabrice Normandin <[email protected]> * Fix issue with check_docs workflow Signed-off-by: Fabrice Normandin <[email protected]> * Add missing mkdocstrings to default deps Signed-off-by: Fabrice Normandin <[email protected]> * Update changed values in regression file Signed-off-by: Fabrice Normandin <[email protected]> * Add xfail on rye-related tests Signed-off-by: Fabrice Normandin <[email protected]> --------- Signed-off-by: Fabrice Normandin <[email protected]>
- Loading branch information
Showing
12 changed files
with
4,793 additions
and
1,644 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,20 +11,23 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Rye with caching of venvs | ||
uses: eifinger/setup-rye@v4 | ||
id: setup-rye | ||
- name: Install the latest version of uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
enable-cache: true | ||
version: "latest" | ||
enable-cache: true # no need, uses the local uv cache. | ||
# https://github.com/astral-sh/setup-uv?tab=readme-ov-file#github-authentication-token | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
cache-suffix: "3.10" | ||
|
||
- name: Pin python-version | ||
run: rye pin 3.10 | ||
run: uv python pin 3.10 | ||
|
||
- name: Install dependencies | ||
run: rye sync --no-lock --features docs | ||
run: uv sync --extra docs --frozen | ||
|
||
- name: Deploy docs | ||
run: rye run mkdocs gh-deploy --force | ||
run: uv run mkdocs gh-deploy --force | ||
# note: Checking if we really need the one below: | ||
# uses: mhausenblas/[email protected] | ||
# # Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.