Skip to content

Commit

Permalink
switch to uv package manager and python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
adhadse committed Dec 22, 2024
1 parent 34ea931 commit 1968097
Show file tree
Hide file tree
Showing 5 changed files with 560 additions and 1,095 deletions.
37 changes: 9 additions & 28 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- uses: actions/setup-python@v4
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
python-version: '3.12'
- name: Load cached dependencies
id: cached-deps
uses: actions/cache@v3
version: "0.5.7"
enable-cache: true
- name: "Set up Python"
uses: actions/setup-python@v5
with:
path: /home/runner/.cache
key: ${{ runner.os }}-deps-${{ hashFiles('**/poetry.lock', '**/requirements*.txt', '**/apt-packages.txt') }}
restore-keys: ${{ runner.os }}-deps-
- name: Install dependencies
run: |
if [ -f apt-packages.txt ]; then
mkdir -p /home/runner/.cache/apt/archives
apt-get update
apt-get upgrade -y
apt-get -o dir::cache::archives="/home/runner/.cache/apt/archives" install -y --no-install-recommends $(cat apt-packages.txt)
apt-get clean
fi
python -m pip install --upgrade pip
pip install poetry
poetry config virtualenvs.path /home/runner/.cache/pypoetry/virtualenvs
poetry install --no-root --no-interaction --no-ansi
# disable for social plugin to give KeyError: 'Regular'
# - uses: actions/cache@v2
# with:
# key: ${{ github.ref }}
# path: .cache
python-version-file: ".python-version"
- name: Deploy
run: poetry run mkdocs gh-deploy --remote-branch gh-pages --force
run: uv run mkdocs gh-deploy --remote-branch gh-pages --force
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.13
Loading

0 comments on commit 1968097

Please sign in to comment.