@@ -10,8 +10,8 @@ concurrency:
1010 group : ${{ github.workflow}}
1111 cancel-in-progress : true
1212
13- env :
14- PYTHON_VERSION : 3.x
13+ # env:
14+ # PYTHON_VERSION: 3.x
1515
1616permissions :
1717 contents : write
@@ -36,34 +36,35 @@ jobs:
3636 - name : Set up Python runtime
3737 uses : actions/setup-python@v5
3838 with :
39- python-version : ${{ env.PYTHON_VERSION }}
40- cache : pip
41- cache-dependency-path : |
42- requirements.txt
39+ # python-version: ${{ env.PYTHON_VERSION }}
40+ python-version-file : .python-version
41+ # cache: pip
42+ # cache-dependency-path: |
43+ # requirements.txt
4344
4445 - name : Debug
4546 run : |
4647 env | sort -f
4748 ls -lart
4849
49- - name : Get pip cache dir
50- run : |
51- os_version=$(cat /etc/os-release | grep -i "version=" | cut -c9- | tr -d '"' | tr ' ' '_')
52- github_workflow_full_path="${GITHUB_WORKFLOW_REF%@*}"
53- python_full_version=$(python -c 'import platform; print(platform.python_version())')
54- node_major_version=$(node --version | cut -d'.' -f1 | tr -d 'v')
55- echo "os_version=$os_version" >> $GITHUB_ENV
56- echo "github_workflow_full_path=$github_workflow_full_path" >> $GITHUB_ENV
57- echo "python_full_version=$python_full_version" >> $GITHUB_ENV
58- echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV
59-
60- - name : cache pip
61- uses : actions/cache@v4
62- with :
63- path : |
64- ${{ env.pythonLocation }}
65- .cache/plugin/git-committers/
66- key : ${{ env.github_workflow_full_path}}-${{ env.os_version }}-${{ env.python_full_version }}-${{ env.node_major_version}}-${{ hashFiles('requirements.txt') }}
50+ # - name: Get pip cache dir
51+ # run: |
52+ # os_version=$(cat /etc/os-release | grep -i "version=" | cut -c9- | tr -d '"' | tr ' ' '_')
53+ # github_workflow_full_path="${GITHUB_WORKFLOW_REF%@*}"
54+ # python_full_version=$(python -c 'import platform; print(platform.python_version())')
55+ # node_major_version=$(node --version | cut -d'.' -f1 | tr -d 'v')
56+ # echo "os_version=$os_version" >> $GITHUB_ENV
57+ # echo "github_workflow_full_path=$github_workflow_full_path" >> $GITHUB_ENV
58+ # echo "python_full_version=$python_full_version" >> $GITHUB_ENV
59+ # echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV
60+
61+ # - name: cache pip
62+ # uses: actions/cache@v4
63+ # with:
64+ # path: |
65+ # ${{ env.pythonLocation }}
66+ # .cache/plugin/git-committers/
67+ # key: ${{ env.github_workflow_full_path}}-${{ env.os_version }}-${{ env.python_full_version }}-${{ env.node_major_version}}-${{ hashFiles('requirements.txt') }}
6768
6869 # - name: Set up build cache
6970 # uses: actions/cache/restore@v3
7374 # restore-keys: |
7475 # mkdocs-material-
7576
76- - name : Install dependencies
77+ - name : Install os dependencies
7778 run : sudo apt-get install pngquant
7879
80+ - name : Install uv
81+ uses : astral-sh/setup-uv@v6
82+ with :
83+ enable-cache : true
84+ activate-environment : true
85+ cache-dependency-glob : |
86+ pyproject.toml
87+
88+ # run: uv sync --frozen --all-extras --dev --verbose
89+ # - name: Install Requirements
90+ # run: |
91+ # uv sync --frozen --no-dev --verbose
92+ # uv pip show mkdocs
93+ # working-directory: ${{ github.workspace }}
94+
7995 - name : Install Python dependencies
8096 run : |
8197 make ci-install
97113
98114 - name : Build documentation
99115 run : |
100- mkdocs --version
116+ uv run mkdocs --version
101117 # https://github.com/facelessuser/pymdown-extensions/issues/2240#issuecomment-1819117598
102- python -m mkdocs build -s
118+ uv run python -m mkdocs build -s
103119 cp ads.txt ./site/
104120 env :
105121 MKDOCS_GIT_COMMITTERS_APIKEY : ${{ secrets.GH_TOKEN_FOR_GIT_COMMITTERS }}
0 commit comments