@@ -10,8 +10,8 @@ concurrency:
10
10
group : ${{ github.workflow}}
11
11
cancel-in-progress : true
12
12
13
- env :
14
- PYTHON_VERSION : 3.x
13
+ # env:
14
+ # PYTHON_VERSION: 3.x
15
15
16
16
permissions :
17
17
contents : write
@@ -36,34 +36,35 @@ jobs:
36
36
- name : Set up Python runtime
37
37
uses : actions/setup-python@v5
38
38
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
43
44
44
45
- name : Debug
45
46
run : |
46
47
env | sort -f
47
48
ls -lart
48
49
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') }}
67
68
68
69
# - name: Set up build cache
69
70
# uses: actions/cache/restore@v3
73
74
# restore-keys: |
74
75
# mkdocs-material-
75
76
76
- - name : Install dependencies
77
+ - name : Install os dependencies
77
78
run : sudo apt-get install pngquant
78
79
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
+
79
95
- name : Install Python dependencies
80
96
run : |
81
97
make ci-install
97
113
98
114
- name : Build documentation
99
115
run : |
100
- mkdocs --version
116
+ uv run mkdocs --version
101
117
# https://github.com/facelessuser/pymdown-extensions/issues/2240#issuecomment-1819117598
102
- python -m mkdocs build -s
118
+ uv run python -m mkdocs build -s
103
119
cp ads.txt ./site/
104
120
env :
105
121
MKDOCS_GIT_COMMITTERS_APIKEY : ${{ secrets.GH_TOKEN_FOR_GIT_COMMITTERS }}
0 commit comments