Skip to content

Commit e2fc7eb

Browse files
committed
Update uv version to 0.9.11 in all workflow files
1 parent b074cfe commit e2fc7eb

4 files changed

Lines changed: 103 additions & 3 deletions

File tree

.github/workflows/code_checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244
3636
with:
3737
# Install a specific version of uv.
38-
version: "0.7.6"
38+
version: "0.9.11"
3939
enable-cache: true
4040

4141
- name: "Set up Python"

.github/workflows/docs.yml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
name: docs
2+
permissions:
3+
contents: write
4+
pull-requests: write
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
paths:
11+
- .pre-commit-config.yaml
12+
- .github/workflows/docs.yml
13+
- '**.py'
14+
- '**.ipynb'
15+
- '**.html'
16+
- '**.js'
17+
- '**.md'
18+
- uv.lock
19+
- pyproject.toml
20+
- mkdocs.yml
21+
- '**.png'
22+
- '**.svg'
23+
pull_request:
24+
branches:
25+
- main
26+
paths:
27+
- .pre-commit-config.yaml
28+
- .github/workflows/docs.yml
29+
- '**.py'
30+
- '**.ipynb'
31+
- '**.js'
32+
- '**.html'
33+
- uv.lock
34+
- pyproject.toml
35+
- '**.md'
36+
- mkdocs.yml
37+
- '**.png'
38+
- '**.svg'
39+
40+
jobs:
41+
build:
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: Checkout code
45+
uses: actions/checkout@v4.2.2
46+
47+
- name: Install uv
48+
uses: astral-sh/setup-uv@v6
49+
with:
50+
version: "0.9.11"
51+
enable-cache: true
52+
53+
- name: Set up Python
54+
uses: actions/setup-python@v5
55+
with:
56+
python-version-file: ".python-version"
57+
58+
- name: Install the project
59+
run: uv sync --all-extras --group docs
60+
61+
- name: Build docs
62+
run: uv run mkdocs build
63+
64+
- name: Create .nojekyll file
65+
run: touch site/.nojekyll
66+
67+
- name: Upload artifact
68+
uses: actions/upload-artifact@v4
69+
with:
70+
name: docs-site
71+
path: site/
72+
retention-days: 1
73+
74+
deploy:
75+
needs: build
76+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
77+
runs-on: ubuntu-latest
78+
steps:
79+
- name: Checkout code
80+
uses: actions/checkout@v4.2.2
81+
82+
- name: Configure Git Credentials
83+
run: |
84+
git config user.name github-actions[bot]
85+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
86+
87+
- name: Download artifact
88+
uses: actions/download-artifact@v4
89+
with:
90+
name: docs-site
91+
path: site
92+
93+
- name: Ensure .nojekyll exists
94+
run: touch site/.nojekyll
95+
96+
- name: Deploy to Github pages
97+
uses: JamesIves/github-pages-deploy-action@v4.7.3
98+
with:
99+
branch: gh-pages
100+
folder: site

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244
2323
with:
2424
# Install a specific version of uv.
25-
version: "0.7.6"
25+
version: "0.9.11"
2626
enable-cache: true
2727

2828
- name: "Set up Python"

.github/workflows/unit_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244
4444
with:
4545
# Install a specific version of uv.
46-
version: "0.7.6"
46+
version: "0.9.11"
4747
enable-cache: true
4848

4949
- name: "Set up Python"

0 commit comments

Comments
 (0)