Skip to content

Commit d9df6b5

Browse files
committed
param install from
1 parent 728cacd commit d9df6b5

File tree

1 file changed

+38
-4
lines changed

1 file changed

+38
-4
lines changed

template/.github/workflows/publish.yaml.jinja

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,29 @@ jobs:
152152
install-from-staging:
153153
name: Install package from staging registry
154154
needs: [ publish-to-staging, get-values ]
155-
runs-on: {% endraw %}{{ gha_linux_runner }}{% raw %}
155+
strategy:
156+
matrix:
157+
os:
158+
- "{% endraw %}{{ gha_linux_runner }}{% raw %}"
159+
{% endraw %}{% if use_windows_in_ci %} - {{ gha_windows_runner }}{% endif %}{% raw %}
160+
python-version:
161+
{% endraw %}{% for item in python_ci_versions %}
162+
- {{ item }}
163+
{% endfor %}{% raw %}
164+
include:
165+
- os: "{% endraw %}{{ gha_linux_runner }}{% raw %}"
166+
python-version: "{% endraw %}{{ python_ci_versions[0] }}{% raw %}"
167+
JOB_MATCHING_DEV_ENV: true
168+
169+
runs-on: ${{ matrix.os }}
170+
156171
steps:
172+
- name: Checkout code
173+
uses: actions/checkout@{% endraw %}{{ gha_checkout }}{% raw %}
157174
- name: Setup python
158175
uses: actions/setup-python@{% endraw %}{{ gha_setup_python }}{% raw %}
159176
with:
160-
python-version: {% endraw %}{{ python_version }}{% raw %}
177+
python-version: ${{ matrix.python-version }}
161178
{% endraw %}{% if python_package_registry == "PyPI" %}{% raw %}
162179
- name: Sleep to allow PyPI Index to update before proceeding to the next step
163180
uses: juliangruber/sleep-action@{% endraw %}{{ gha_sleep }}{% raw %}
@@ -226,12 +243,29 @@ jobs:
226243
name: Install package from primary registry
227244
if: ${{ github.event.inputs.publish_to_primary }}
228245
needs: [ publish-to-primary, get-values ]
229-
runs-on: {% endraw %}{{ gha_linux_runner }}{% raw %}
246+
strategy:
247+
matrix:
248+
os:
249+
- "{% endraw %}{{ gha_linux_runner }}{% raw %}"
250+
{% endraw %}{% if use_windows_in_ci %} - {{ gha_windows_runner }}{% endif %}{% raw %}
251+
python-version:
252+
{% endraw %}{% for item in python_ci_versions %}
253+
- {{ item }}
254+
{% endfor %}{% raw %}
255+
include:
256+
- os: "{% endraw %}{{ gha_linux_runner }}{% raw %}"
257+
python-version: "{% endraw %}{{ python_ci_versions[0] }}{% raw %}"
258+
JOB_MATCHING_DEV_ENV: true
259+
260+
runs-on: ${{ matrix.os }}
261+
230262
steps:
263+
- name: Checkout code
264+
uses: actions/checkout@{% endraw %}{{ gha_checkout }}{% raw %}
231265
- name: Setup python
232266
uses: actions/setup-python@{% endraw %}{{ gha_setup_python }}{% raw %}
233267
with:
234-
python-version: {% endraw %}{{ python_version }}{% raw %}
268+
python-version: ${{ matrix.python-version }}
235269
{% endraw %}{% if python_package_registry == "PyPI" %}{% raw %}
236270
- name: Sleep to allow PyPI Index to update before proceeding to the next step
237271
uses: juliangruber/sleep-action@{% endraw %}{{ gha_sleep }}{% raw %}

0 commit comments

Comments
 (0)