<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
		<id>https://1984.lsi.us.es/wiki-egc/index.php?action=history&amp;feed=atom&amp;title=Matrices_en_Github_Actions_2324</id>
		<title>Matrices en Github Actions 2324 - Historial de revisiones</title>
		<link rel="self" type="application/atom+xml" href="https://1984.lsi.us.es/wiki-egc/index.php?action=history&amp;feed=atom&amp;title=Matrices_en_Github_Actions_2324"/>
		<link rel="alternate" type="text/html" href="https://1984.lsi.us.es/wiki-egc/index.php?title=Matrices_en_Github_Actions_2324&amp;action=history"/>
		<updated>2026-05-16T11:28:10Z</updated>
		<subtitle>Historial de revisiones para esta página en el wiki</subtitle>
		<generator>MediaWiki 1.29.0</generator>

	<entry>
		<id>https://1984.lsi.us.es/wiki-egc/index.php?title=Matrices_en_Github_Actions_2324&amp;diff=9626&amp;oldid=prev</id>
		<title>Brgutierrez: Página creada con «= Build matrix en GitHub Actions  =  Podemos indicarle a GitHub que ciertos steps se ejecuten en paralelo. Para ello, hemos de definir una &quot;estrategria&quot; a nivel de job.  Pa...»</title>
		<link rel="alternate" type="text/html" href="https://1984.lsi.us.es/wiki-egc/index.php?title=Matrices_en_Github_Actions_2324&amp;diff=9626&amp;oldid=prev"/>
				<updated>2023-10-10T07:30:43Z</updated>
		
		<summary type="html">&lt;p&gt;Página creada con «= Build matrix en GitHub Actions  =  Podemos indicarle a GitHub que ciertos steps se ejecuten en paralelo. Para ello, hemos de definir una &amp;quot;estrategria&amp;quot; a nivel de job.  Pa...»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Build matrix en GitHub Actions  =&lt;br /&gt;
&lt;br /&gt;
Podemos indicarle a GitHub que ciertos steps se ejecuten en paralelo. Para ello, hemos de definir una &amp;quot;estrategria&amp;quot; a nivel de job. &lt;br /&gt;
Para indicar varias versiones de python a utilizar en el step de &amp;quot;setup-python&amp;quot;, incluiremos lo siguiente:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;YAML&amp;quot;&amp;gt;&lt;br /&gt;
build:&lt;br /&gt;
    strategy:&lt;br /&gt;
      matrix:&lt;br /&gt;
        pyversion: ['3.10.12','3.11']&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Una vez hecho eso, podremos usar el contexto &amp;quot;matrix&amp;quot; en cualquiera de los steps de este job. En este caso lo usaremos en en el siguiente step:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;YAML&amp;quot;&amp;gt;&lt;br /&gt;
- name: Set up Python ${{matrix.pyversion}}&lt;br /&gt;
  uses: actions/setup-python@v4&lt;br /&gt;
  with:&lt;br /&gt;
    python-version: ${{matrix.pyversion}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Haz un push y observa la ejecución del workflow.&lt;br /&gt;
&lt;br /&gt;
¿Qué tendríamos que hacer para probar ampliar el build matrix con las versiones de postress 14.9 y 15? ¿Cuántos jobs se ejecutarían?&lt;/div&gt;</summary>
		<author><name>Brgutierrez</name></author>	</entry>

	</feed>