@@ -37,33 +37,33 @@ jobs:
3737 uses : actions/setup-python@v5
3838 with :
3939 python-version : ${{ env.PYTHON_VERSION }}
40- cache : pip
41- cache-dependency-path : |
42- requirements.txt
40+ # cache: pip
41+ # cache-dependency-path: |
42+ # requirements.txt
4343
4444 - name : Debug
4545 run : |
4646 env | sort -f
4747 ls -lart
4848
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') }}
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') }}
6767
6868 # - name: Set up build cache
6969 # uses: actions/cache/restore@v3
7373 # restore-keys: |
7474 # mkdocs-material-
7575
76- - name : Install dependencies
76+ - name : Install os dependencies
7777 run : sudo apt-get install pngquant
7878
79+ - name : Install uv
80+ uses : astral-sh/setup-uv@v6
81+ with :
82+ enable-cache : true
83+ activate-environment : true
84+ cache-dependency-glob : |
85+ pyproject.toml
86+
87+ # run: uv sync --frozen --all-extras --dev --verbose
88+ # - name: Install Requirements
89+ # run: |
90+ # uv sync --frozen --no-dev --verbose
91+ # uv pip show mkdocs
92+ # working-directory: ${{ github.workspace }}
93+
7994 - name : Install Python dependencies
8095 run : |
8196 make ci-install
97112
98113 - name : Build documentation
99114 run : |
100- mkdocs --version
115+ uv run mkdocs --version
101116 # https://github.com/facelessuser/pymdown-extensions/issues/2240#issuecomment-1819117598
102- python -m mkdocs build -s
117+ uv run python -m mkdocs build -s
103118 cp ads.txt ./site/
104119 env :
105120 MKDOCS_GIT_COMMITTERS_APIKEY : ${{ secrets.GH_TOKEN_FOR_GIT_COMMITTERS }}
0 commit comments