@@ -12,6 +12,7 @@ concurrency:
1212
1313env :
1414 PYTHON_VERSION : 3.x
15+ UV_PROJECT_ENVIRONMENT : /usr/local/
1516
1617permissions :
1718 contents : write
@@ -37,33 +38,33 @@ jobs:
3738 uses : actions/setup-python@v5
3839 with :
3940 python-version : ${{ env.PYTHON_VERSION }}
40- cache : pip
41- cache-dependency-path : |
42- requirements.txt
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
@@ -73,12 +74,27 @@ jobs:
7374 # restore-keys: |
7475 # mkdocs-material-
7576
76- - name : Install dependencies
77+ - name : Install os dependencies
7778 run : sudo apt-get install pngquant
7879
79- - name : Install Python dependencies
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
8090 run : |
81- make ci-install
91+ UV_SYSTEM_PYTHON=true uv sync --frozen --no-dev --verbose
92+ uv pip show mkdocs
93+ working-directory : ${{ github.workspace }}
94+
95+ # - name: Install Python dependencies
96+ # run: |
97+ # make ci-install
8298
8399 - name : Remove future-dated markdown files
84100 run : |
0 commit comments