@@ -37,33 +37,33 @@ jobs:
37
37
uses : actions/setup-python@v5
38
38
with :
39
39
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
43
43
44
44
- name : Debug
45
45
run : |
46
46
env | sort -f
47
47
ls -lart
48
48
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') }}
67
67
68
68
# - name: Set up build cache
69
69
# uses: actions/cache/restore@v3
73
73
# restore-keys: |
74
74
# mkdocs-material-
75
75
76
- - name : Install dependencies
76
+ - name : Install os dependencies
77
77
run : sudo apt-get install pngquant
78
78
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
+
79
94
- name : Install Python dependencies
80
95
run : |
81
96
make ci-install
97
112
98
113
- name : Build documentation
99
114
run : |
100
- mkdocs --version
115
+ uv run mkdocs --version
101
116
# https://github.com/facelessuser/pymdown-extensions/issues/2240#issuecomment-1819117598
102
- python -m mkdocs build -s
117
+ uv run python -m mkdocs build -s
103
118
cp ads.txt ./site/
104
119
env :
105
120
MKDOCS_GIT_COMMITTERS_APIKEY : ${{ secrets.GH_TOKEN_FOR_GIT_COMMITTERS }}
0 commit comments