Skip to content

Commit 079b541

Browse files
committed
readme
1 parent 07013ec commit 079b541

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/py.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,32 @@ jobs:
3838
- 'pytest.ini'
3939
- 'py/**'
4040
41+
lockfiles:
42+
runs-on: ubuntu-24.04
43+
needs: request
44+
if: >-
45+
github.repository_owner == 'envoyproxy'
46+
&& fromJSON(needs.request.outputs.run)
47+
steps:
48+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
49+
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
50+
with:
51+
python-version: "3.12"
52+
- name: Initialize Pants
53+
uses: pantsbuild/actions/init-pants@ab362158088bb31685015e7f5728a4c1df3c0e6e # v10
54+
with:
55+
gha-cache-key: "v0-${{ runner.os }}"
56+
named-caches-hash: "${{ hashFiles('pants*toml') }}"
57+
- name: Run pants generate-lockfiles
58+
run: |
59+
pants --generate-lockfiles
60+
git diff > /tmp/patch
61+
- name: Upload diff
62+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
63+
with:
64+
name: diff
65+
path: /tmp/patch
66+
4167
test:
4268
runs-on: ubuntu-24.04
4369
needs: request

0 commit comments

Comments
 (0)