Skip to content

Commit d2ca2a7

Browse files
committed
Move to uv + some cleanup
1 parent 579f1e4 commit d2ca2a7

File tree

6 files changed

+628
-765
lines changed

6 files changed

+628
-765
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,51 +9,36 @@ permissions: {}
99

1010
jobs:
1111
build:
12-
runs-on: ubuntu-22.04
12+
runs-on: ubuntu-24.04
1313
permissions:
1414
contents: read
1515
steps:
1616
- uses: actions/checkout@v5
1717
with:
1818
persist-credentials: false
1919

20-
- name: Setup Python (pip)
21-
uses: actions/setup-python@v5
20+
- name: Setup python
21+
uses: actions/setup-python@v6
2222
with:
23-
python-version: '3.10'
24-
architecture: 'x64'
25-
cache: 'pip'
26-
cache-dependency-path: .github/workflows/main.yml
23+
python-version-file: "pyproject.toml"
2724

28-
- name: Install poetry
29-
run: |
30-
python3 -m pip install --upgrade poetry==2.2.0
31-
32-
- name: Setup Python (poetry)
33-
uses: actions/setup-python@v5
34-
with:
35-
python-version: '3.10'
36-
architecture: 'x64'
37-
cache: 'poetry'
38-
39-
- name: Install dependencies
40-
run: |
41-
poetry install
25+
- name: Install uv
26+
uses: astral-sh/setup-uv@v6
4227

4328
- run: |
44-
poetry run mkdocs build
45-
poetry run python news2rss.py -f site/news/index.html -o site/news.xml
29+
uv run mkdocs build
30+
uv run python news2rss.py -f site/news/index.html -o site/news.xml
4631
4732
- name: Upload for pages
48-
uses: actions/upload-pages-artifact@v3
33+
uses: actions/upload-pages-artifact@v4
4934
with:
5035
path: ./site
5136

5237
deploy:
5338
environment:
5439
name: github-pages
5540
url: ${{ steps.deployment.outputs.page_url }}
56-
runs-on: ubuntu-latest
41+
runs-on: ubuntu-24.04
5742
needs: build
5843
concurrency: ci-${{ github.ref }}
5944
permissions:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
/.vscode
44
/.cache
55
.lycheecache
6+
/.venv
7+
poetry.lock

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ For small changes:
3636

3737
For larger changes:
3838

39-
* `poetry install`
40-
* `poetry run mkdocs serve`
39+
* `uv run mkdocs serve`
4140
* Access http://127.0.0.1:8000 - any changes to the sources should be
4241
immediately visible in your browser
4342
* Open a PR with your changes or just push them if you have commit rights

0 commit comments

Comments
 (0)