ci: use uv to provision Python 3.12, fixing zensical build on py3.9 runner
All checks were successful
Deploy Docs / deploy (push) Successful in 14s
All checks were successful
Deploy Docs / deploy (push) Successful in 14s
This commit is contained in:
parent
4b4425a2d9
commit
5e0f482db1
1 changed files with 17 additions and 13 deletions
|
|
@ -5,26 +5,30 @@ on:
|
||||||
- main
|
- main
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on:
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: python:3.12
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- run: python3 --version
|
- name: Install uv
|
||||||
|
run: |
|
||||||
|
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||||
|
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
||||||
|
|
||||||
- run: |
|
- name: Install Python 3.12 via uv
|
||||||
apt-get update
|
run: |
|
||||||
apt-get install -y python3-venv python3-pip
|
export PATH="$HOME/.local/bin:$PATH"
|
||||||
|
uv python install 3.12
|
||||||
|
|
||||||
- run: |
|
- name: Build site
|
||||||
python3 -m venv /tmp/venv
|
run: |
|
||||||
|
export PATH="$HOME/.local/bin:$PATH"
|
||||||
|
uv venv --python 3.12 /tmp/venv
|
||||||
. /tmp/venv/bin/activate
|
. /tmp/venv/bin/activate
|
||||||
pip install --upgrade pip
|
python --version
|
||||||
pip install zensical
|
uv pip install zensical
|
||||||
pip install -e .
|
uv pip install -e .
|
||||||
zensical build --clean
|
zensical build --clean
|
||||||
|
|
||||||
- name: Deploy to pages branch
|
- name: Deploy to pages branch
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue