|
33 | 33 | with: |
34 | 34 | ref: master |
35 | 35 | - name: Setup Python |
36 | | - uses: actions/setup-python@v3 |
| 36 | + uses: actions/setup-python@v5 |
37 | 37 | id: setup-python |
38 | 38 | with: |
39 | 39 | python-version: "3.9" |
@@ -90,18 +90,18 @@ jobs: |
90 | 90 | run: echo "::set-output name=DOCKER_IMAGE_TAG::`git rev-parse HEAD`" |
91 | 91 | - name: Cache Public ECR Image |
92 | 92 | id: lambda_python_3_9 |
93 | | - uses: actions/cache@v2 |
| 93 | + uses: actions/cache@v4 |
94 | 94 | with: |
95 | 95 | path: ~/cache |
96 | 96 | key: lambda_python_3_9 |
97 | 97 | - name: Handle Cache Miss (pull public ECR image & save it to tar file) |
98 | | - if: steps.cache-primes.outputs.cache-hit != 'true' |
| 98 | + if: steps.lambda_python_3_9.outputs.cache-hit != 'true' |
99 | 99 | run: | |
100 | 100 | mkdir -p ~/cache |
101 | 101 | docker pull public.ecr.aws/lambda/python:3.9 |
102 | 102 | docker save public.ecr.aws/lambda/python:3.9 -o ~/cache/lambda_python_3_9.tar |
103 | 103 | - name: Handle Cache Hit (load docker image from tar file) |
104 | | - if: steps.cache-primes.outputs.cache-hit == 'true' |
| 104 | + if: steps.lambda_python_3_9.outputs.cache-hit == 'true' |
105 | 105 | run: | |
106 | 106 | docker load -i ~/cache/lambda_python_3_9.tar |
107 | 107 | - name: Build and push |
@@ -145,7 +145,7 @@ jobs: |
145 | 145 | ref: master |
146 | 146 | submodules: recursive |
147 | 147 | - name: Setup Python |
148 | | - uses: actions/setup-python@v3 |
| 148 | + uses: actions/setup-python@v5 |
149 | 149 | id: setup-python |
150 | 150 | with: |
151 | 151 | python-version: ${{ matrix.python-version }} |
@@ -173,25 +173,20 @@ jobs: |
173 | 173 | aws-region: us-west-2 |
174 | 174 | - name: Use AWS CLI |
175 | 175 | run: aws sts get-caller-identity |
176 | | - - name: Get pip cache dir |
177 | | - id: pip-cache |
178 | | - run: | |
179 | | - echo "::set-output name=dir::$(pip cache dir)" |
180 | | - - name: pip cache |
181 | | - uses: actions/cache@v2 |
182 | | - with: |
183 | | - path: | |
184 | | - ${{ steps.pip-cache.outputs.dir }} |
185 | | - /opt/hostedtoolcache/Python |
186 | | - /Users/runner/hostedtoolcache/Python |
187 | | - key: ${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-pip-${{ hashFiles(format('**/py{0}-ci-requirements.txt', env.PYTHON)) }} |
188 | | - restore-keys: | |
189 | | - ${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-pip- |
190 | 176 | - name: Upgrade pip version |
191 | 177 | run: | |
192 | 178 | pip install --upgrade "pip>=21.3.1,<23.2" |
193 | | - - name: Install pip-tools |
194 | | - run: pip install pip-tools |
| 179 | + - name: Install uv |
| 180 | + run: pip install uv |
| 181 | + - name: Get uv cache dir |
| 182 | + id: uv-cache |
| 183 | + run: | |
| 184 | + echo "::set-output name=dir::$(uv cache dir)" |
| 185 | + - name: uv cache |
| 186 | + uses: actions/cache@v4 |
| 187 | + with: |
| 188 | + path: ${{ steps.uv-cache.outputs.dir }} |
| 189 | + key: ${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-uv-${{ hashFiles(format('**/py{0}-ci-requirements.txt', env.PYTHON)) }} |
195 | 190 | - name: Install apache-arrow on ubuntu |
196 | 191 | if: matrix.os == 'ubuntu-latest' |
197 | 192 | run: | |
|
0 commit comments