Skip to content

Commit 5442e55

Browse files
update workflows to newer versions
1 parent fd103a7 commit 5442e55

File tree

2 files changed

+31
-28
lines changed

2 files changed

+31
-28
lines changed

.github/workflows/docs_pages.yaml

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
11
name: Docs2Pages
2-
on: [push, pull_request, workflow_dispatch]
2+
on: [ push, pull_request, workflow_dispatch ]
33
permissions:
44
contents: write
55

66
jobs:
77
build-docs:
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Checkout
11-
uses: actions/checkout@v3
12-
- uses: actions/setup-python@v5
13-
with:
14-
python-version: '3.12'
10+
- name: Checkout
11+
uses: actions/checkout@v5
1512

16-
- name: Install dependencies
17-
run: |
18-
pip install uv
19-
uv sync --all-extras
13+
- name: Install uv
14+
uses: astral-sh/setup-uv@v6
2015

21-
- name: Sphinx build
22-
run: |
23-
uv run sphinx-build -b html docs/source docs/build/html
16+
- name: Install Python 3.13
17+
run: uv python install 3.13
2418

25-
- name: Deploy documentation
26-
uses: peaceiris/actions-gh-pages@v4
27-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
28-
with:
29-
publish_branch: gh-pages
30-
github_token: ${{ secrets.GITHUB_TOKEN }}
31-
publish_dir: ./docs/build/html
32-
force_orphan: true
19+
- name: Install dependencies
20+
run: uv sync --all-extras
21+
22+
- name: Sphinx build
23+
run: |
24+
uv run sphinx-build -b html docs/source docs/build/html
25+
26+
- name: Deploy documentation
27+
uses: peaceiris/actions-gh-pages@v4
28+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
29+
with:
30+
publish_branch: gh-pages
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: ./docs/build/html
33+
force_orphan: true

.github/workflows/linting.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@ jobs:
44
lint:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v3
8-
- uses: actions/setup-python@v5
9-
with:
10-
python-version: '3.12'
7+
- name: Checkout
8+
uses: actions/checkout@v5
9+
10+
- name: Install uv
11+
uses: astral-sh/setup-uv@v6
12+
13+
- name: Install Python 3.13
14+
run: uv python install 3.13
1115

1216
- name: Install dependencies
13-
run: |
14-
pip install uv
15-
uv sync --all-extras
17+
run: uv sync --all-extras
1618

1719
- name: Lint
1820
run: |

0 commit comments

Comments
 (0)