Skip to content

Commit 45907bf

Browse files
committed
Test Iron Proxy for CI
1 parent 0d7c7de commit 45907bf

4 files changed

Lines changed: 44 additions & 0 deletions

File tree

.github/egress-rules.yaml

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

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ 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-rules.yaml
20+
warn: 'true'
21+
1722
- name: Fetch tags
1823
run: git fetch --tags origin
1924

@@ -40,6 +45,9 @@ jobs:
4045
name: python-package-distributions
4146
path: dist/
4247

48+
- uses: ironsh/iron-proxy-action/summary@67ae2cdb5cc549c5cb94e76235953f4a9fcb183c # v0.1.3 from 2026-04-07.
49+
if: always()
50+
4351
publish-to-testpypi:
4452
name: Publish Python distribution to TestPyPI
4553
needs:
@@ -52,6 +60,11 @@ jobs:
5260
id-token: write # IMPORTANT: mandatory for trusted publishing
5361

5462
steps:
63+
- uses: ironsh/iron-proxy-action@67ae2cdb5cc549c5cb94e76235953f4a9fcb183c # v0.1.3 from 2026-04-07.
64+
with:
65+
egress-rules: .github/egress-rules.yaml
66+
warn: 'true'
67+
5568
- name: Download all the dists
5669
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 from 2026-03-11.
5770
with:
@@ -64,3 +77,6 @@ jobs:
6477
repository-url: https://test.pypi.org/legacy/
6578
print-hash: true
6679
verbose: true
80+
81+
- uses: ironsh/iron-proxy-action/summary@67ae2cdb5cc549c5cb94e76235953f4a9fcb183c # v0.1.3 from 2026-04-07.
82+
if: always()

.github/workflows/test-all.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ jobs:
6565
steps:
6666
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 from 2026-01-09.
6767

68+
- uses: ironsh/iron-proxy-action@67ae2cdb5cc549c5cb94e76235953f4a9fcb183c # v0.1.3 from 2026-04-07.
69+
with:
70+
egress-rules: .github/egress-rules.yaml
71+
warn: 'true'
72+
6873
- name: Set up Python ${{ matrix.python }}
6974
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 from 2026-01-21.
7075
with:
@@ -82,6 +87,9 @@ jobs:
8287
if: matrix.python == '3.9' || matrix.python == 'pypy-3.9'
8388
run: python -m tox -c tox-ci-py39.ini -e ci-${{ matrix.backend }} -- --verbose
8489

90+
- uses: ironsh/iron-proxy-action/summary@67ae2cdb5cc549c5cb94e76235953f4a9fcb183c # v0.1.3 from 2026-04-07.
91+
if: always()
92+
8593
docs:
8694
# Test documentation builds.
8795
# This environment mirrors the ReadTheDocs build environment.
@@ -90,6 +98,11 @@ jobs:
9098
steps:
9199
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 from 2026-01-09.
92100

101+
- uses: ironsh/iron-proxy-action@67ae2cdb5cc549c5cb94e76235953f4a9fcb183c # v0.1.3 from 2026-04-07.
102+
with:
103+
egress-rules: .github/egress-rules.yaml
104+
warn: 'true'
105+
93106
- name: Set up Python ${{ matrix.python }}
94107
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 from 2026-01-21.
95108
with:
@@ -100,3 +113,6 @@ jobs:
100113

101114
- name: Run tests
102115
run: python -m tox -e docs
116+
117+
- uses: ironsh/iron-proxy-action/summary@67ae2cdb5cc549c5cb94e76235953f4a9fcb183c # v0.1.3 from 2026-04-07.
118+
if: always()

.github/workflows/test-quick.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
steps:
3030
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 from 2026-01-09.
3131

32+
- uses: ironsh/iron-proxy-action@67ae2cdb5cc549c5cb94e76235953f4a9fcb183c # v0.1.3 from 2026-04-07.
33+
with:
34+
egress-rules: .github/egress-rules.yaml
35+
warn: 'true'
36+
3237
- name: Set up Python ${{ matrix.python }}
3338
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 from 2026-01-21.
3439
with:
@@ -45,3 +50,6 @@ jobs:
4550
- name: Run tests (3.9)
4651
if: matrix.python == '3.9'
4752
run: python -m tox -c tox-ci-py39.ini -e ci-${{ matrix.backend }} -- --verbose
53+
54+
- uses: ironsh/iron-proxy-action/summary@67ae2cdb5cc549c5cb94e76235953f4a9fcb183c # v0.1.3 from 2026-04-07.
55+
if: always()

0 commit comments

Comments
 (0)