Skip to content

Commit 06391d8

Browse files
committed
Test Iron Proxy for CI
1 parent 45907bf commit 06391d8

File tree

7 files changed

+23
-11
lines changed

7 files changed

+23
-11
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
domains:
22
- files.pythonhosted.org
33
- pypi.org
4-
- test.pypi.org

.github/egress-pypi-rules.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
domains:
2+
- pypi.org

.github/egress-testpypi-rules.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
domains:
2+
- test.pypi.org

.github/workflows/publish-to-pypi.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ jobs:
1414
with:
1515
persist-credentials: false
1616

17+
- uses: ironsh/iron-proxy-action@67ae2cdb5cc549c5cb94e76235953f4a9fcb183c # v0.1.3 from 2026-04-07.
18+
with:
19+
egress-rules: .github/egress-build-rules.yaml
20+
1721
- name: Set up Python
1822
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 from 2026-01-21.
1923
with:
@@ -31,6 +35,9 @@ jobs:
3135
name: python-package-distributions
3236
path: dist/
3337

38+
- uses: ironsh/iron-proxy-action/summary@67ae2cdb5cc549c5cb94e76235953f4a9fcb183c # v0.1.3 from 2026-04-07.
39+
if: always()
40+
3441
publish-to-pypi:
3542
name: Publish Python distribution to PyPI
3643
needs:
@@ -43,6 +50,10 @@ jobs:
4350
id-token: write # IMPORTANT: mandatory for trusted publishing
4451

4552
steps:
53+
- uses: ironsh/iron-proxy-action@67ae2cdb5cc549c5cb94e76235953f4a9fcb183c # v0.1.3 from 2026-04-07.
54+
with:
55+
egress-rules: .github/egress-testpypi-rules.yaml
56+
4657
- name: Download all the dists
4758
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 from 2026-03-11.
4859
with:
@@ -53,3 +64,6 @@ jobs:
5364
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0 from 2025-09-03.
5465
with:
5566
print-hash: true
67+
68+
- uses: ironsh/iron-proxy-action/summary@67ae2cdb5cc549c5cb94e76235953f4a9fcb183c # v0.1.3 from 2026-04-07.
69+
if: always()

.github/workflows/publish-to-testpypi.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ jobs:
1616

1717
- uses: ironsh/iron-proxy-action@67ae2cdb5cc549c5cb94e76235953f4a9fcb183c # v0.1.3 from 2026-04-07.
1818
with:
19-
egress-rules: .github/egress-rules.yaml
20-
warn: 'true'
19+
egress-rules: .github/egress-build-rules.yaml
2120

2221
- name: Fetch tags
2322
run: git fetch --tags origin
@@ -62,8 +61,7 @@ jobs:
6261
steps:
6362
- uses: ironsh/iron-proxy-action@67ae2cdb5cc549c5cb94e76235953f4a9fcb183c # v0.1.3 from 2026-04-07.
6463
with:
65-
egress-rules: .github/egress-rules.yaml
66-
warn: 'true'
64+
egress-rules: .github/egress-testpypi-rules.yaml
6765

6866
- name: Download all the dists
6967
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 from 2026-03-11.

.github/workflows/test-all.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ jobs:
6767

6868
- uses: ironsh/iron-proxy-action@67ae2cdb5cc549c5cb94e76235953f4a9fcb183c # v0.1.3 from 2026-04-07.
6969
with:
70-
egress-rules: .github/egress-rules.yaml
71-
warn: 'true'
70+
egress-rules: .github/egress-build-rules.yaml
7271

7372
- name: Set up Python ${{ matrix.python }}
7473
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 from 2026-01-21.
@@ -100,8 +99,7 @@ jobs:
10099

101100
- uses: ironsh/iron-proxy-action@67ae2cdb5cc549c5cb94e76235953f4a9fcb183c # v0.1.3 from 2026-04-07.
102101
with:
103-
egress-rules: .github/egress-rules.yaml
104-
warn: 'true'
102+
egress-rules: .github/egress-build-rules.yaml
105103

106104
- name: Set up Python ${{ matrix.python }}
107105
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 from 2026-01-21.

.github/workflows/test-quick.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ jobs:
3131

3232
- uses: ironsh/iron-proxy-action@67ae2cdb5cc549c5cb94e76235953f4a9fcb183c # v0.1.3 from 2026-04-07.
3333
with:
34-
egress-rules: .github/egress-rules.yaml
35-
warn: 'true'
34+
egress-rules: .github/egress-build-rules.yaml
3635

3736
- name: Set up Python ${{ matrix.python }}
3837
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 from 2026-01-21.

0 commit comments

Comments
 (0)