Switch to unified view

a b/.github/workflows/documentation.yml
1
name: Documentation
2
3
on:
4
  workflow_dispatch:
5
  push:
6
    branches: [master, dev]
7
8
env:
9
  BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
10
  # UV_INDEX_STRATEGY: "unsafe-first-match"
11
  # UV_EXTRA_INDEX_URL: "https://download.pytorch.org/whl/cpu"
12
  PIP_EXTRA_INDEX_URL: "https://download.pytorch.org/whl/cpu"
13
14
jobs:
15
  Documentation:
16
    runs-on: ubuntu-22.04
17
    steps:
18
    - uses: actions/checkout@v2
19
20
    - uses: actions/setup-python@v4
21
      with:
22
        python-version: "3.9"
23
        cache: 'pip'
24
25
    - run: echo WEEK=$(date +%V) >>$GITHUB_ENV
26
      shell: bash
27
28
#    - uses: hynek/setup-cached-uv@v1
29
#      with:
30
#        cache-suffix: -docs-${{ matrix.python-version }}-${{ env.WEEK }}
31
32
    - name: Install dependencies
33
      run: |
34
        pip install '.[docs]'
35
#        uv venv
36
#        uv pip install '.[docs]'
37
38
    - name: Set up Git
39
      run: |
40
        git config user.name ${{ github.actor }}
41
        git config user.email ${{ github.actor }}@users.noreply.github.com
42
43
    - name: Build documentation
44
      run: |
45
        git fetch origin gh-pages
46
        mike delete $BRANCH_NAME
47
        mike deploy --push $BRANCH_NAME
48
#        source .venv/bin/activate