@@ -46,15 +46,22 @@ jobs:
4646 languages : ${{ steps.languages.outputs.languages }}
4747 steps :
4848 - name : Check out ${{ github.repository }}
49- uses : actions/checkout@v6.0.2
49+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
50+ with :
51+ persist-credentials : false
5052
5153 - name : Set up Python 3
52- uses : actions/setup-python@v6.2.0
54+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
5355 with :
5456 python-version : ' 3.12'
5557 cache : ' pip'
5658 cache-dependency-path : requirements.txt
57- pip-install : -r requirements.txt
59+
60+ - name : Install Python dependencies
61+ run : |
62+ python -m venv .venv
63+ echo "$PWD/.venv/bin" >> "$GITHUB_PATH"
64+ .venv/bin/python -m pip install -r requirements.txt
5865
5966 - name : Set version variables
6067 id : version
@@ -66,10 +73,11 @@ jobs:
6673 } >> "$GITHUB_OUTPUT"
6774
6875 - name : Check out branch ${{ steps.version.outputs.current }}
69- uses : actions/checkout@v6.0.2
76+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7077 with :
7178 ref : ${{ steps.version.outputs.current }}
7279 path : ${{ steps.version.outputs.current }}
80+ persist-credentials : false
7381
7482 - name : Set languages variable
7583 id : languages
@@ -79,10 +87,15 @@ jobs:
7987
8088 - name : Print variables values
8189 run : |
82- echo all_versions: ${{ steps.version.outputs.all_versions }}
83- echo current: ${{ steps.version.outputs.current }}
84- echo version_pairs: ${{ steps.version.outputs.version_pairs }}
85- echo languages: ${{ steps.languages.outputs.languages }}
90+ echo "all_versions: ${STEPS_VERSION_OUTPUTS_ALL_VERSIONS}"
91+ echo "current: ${STEPS_VERSION_OUTPUTS_CURRENT}"
92+ echo "version_pairs: ${STEPS_VERSION_OUTPUTS_VERSION_PAIRS}"
93+ echo "languages: ${STEPS_LANGUAGES_OUTPUTS_LANGUAGES}"
94+ env :
95+ STEPS_VERSION_OUTPUTS_ALL_VERSIONS : ${{ steps.version.outputs.all_versions }}
96+ STEPS_VERSION_OUTPUTS_CURRENT : ${{ steps.version.outputs.current }}
97+ STEPS_VERSION_OUTPUTS_VERSION_PAIRS : ${{ steps.version.outputs.version_pairs }}
98+ STEPS_LANGUAGES_OUTPUTS_LANGUAGES : ${{ steps.languages.outputs.languages }}
8699
87100
88101 update :
@@ -99,31 +112,39 @@ jobs:
99112
100113 steps :
101114 - name : Check out ${{ github.repository }}
102- uses : actions/checkout@v6.0.2
115+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
116+ with :
117+ persist-credentials : false
103118
104119 - name : Check out ${{ matrix.cpython_version }} branch of CPython
105- uses : actions/checkout@v6.0.2
120+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
106121 with :
107122 repository : python/cpython
108123 persist-credentials : false
109124 ref : ${{ matrix.cpython_version }}
110125 path : cpython
111126
112127 - name : Check out ${{ matrix.cpython_version }} branch of ${{ github.repository }}
113- uses : actions/checkout@v6.0.2
128+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
114129 with :
115130 ref : ${{ matrix.cpython_version }}
116131 path : cpython/Doc/locales
132+ persist-credentials : false
117133
118134 - name : Set up Python 3
119- uses : actions/setup-python@v6.2.0
135+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
120136 with :
121137 python-version : ' 3.12'
122138 cache : ' pip'
123139 cache-dependency-path : |
124140 requirements.txt
125141 cpython/Doc/requirements.txt
126- pip-install : -r requirements.txt -r cpython/Doc/requirements.txt
142+
143+ - name : Install Python dependencies
144+ run : |
145+ python -m venv .venv
146+ echo "$PWD/.venv/bin" >> "$GITHUB_PATH"
147+ .venv/bin/python -m pip install -r requirements.txt -r cpython/Doc/requirements.txt
127148
128149 - name : Install Transifex CLI
129150 working-directory : /usr/local/bin
@@ -138,9 +159,11 @@ jobs:
138159 if : ${{ matrix.cpython_version != needs.trigger.outputs.current }}
139160 shell : bash
140161 run : |
141- ver="$(echo "${{ matrix.cpython_version }}" | sed 's|\.||') "
162+ ver="${MATRIX_CPYTHON_VERSION//./} "
142163 echo "TX_PROJECT=python-$ver" >> "$GITHUB_ENV"
143164 echo "${{ env.TX_PROJECT }}"
165+ env :
166+ MATRIX_CPYTHON_VERSION : ${{ matrix.cpython_version }}
144167
145168 # required for generating .tx/config
146169 - name : Generate POT files
0 commit comments