<?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_22</id>
		<title>Matrices en Github Actions 22 - 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_22"/>
		<link rel="alternate" type="text/html" href="https://1984.lsi.us.es/wiki-egc/index.php?title=Matrices_en_Github_Actions_22&amp;action=history"/>
		<updated>2026-06-22T23:37:15Z</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_22&amp;diff=9414&amp;oldid=prev</id>
		<title>Ajramirez: 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.  P...»</title>
		<link rel="alternate" type="text/html" href="https://1984.lsi.us.es/wiki-egc/index.php?title=Matrices_en_Github_Actions_22&amp;diff=9414&amp;oldid=prev"/>
				<updated>2022-10-09T15:40:02Z</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.  P...»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&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.5','3.8']&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@v1&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 12 y 10.8? ¿Cuántos jobs se ejecutarían?&lt;/div&gt;</summary>
		<author><name>Ajramirez</name></author>	</entry>

	</feed>