How to run multiple commands in one Github Actions Docker : <p>What is the right way for running multiple commands in one <code>action</code>?</p>

<h2>For example:</h2>

<p>I want to run a python script as <code>action</code>. Before running this script I need to install the <code>requirements.txt</code>.</p>

<h3>I can think of several options:</h3>

<ul>
<li>Create a <code>Dockerfile</code> with the command <code>RUN pip install -r requirements.txt</code> in it.</li>
<li>Use the <code>python:3</code> image, and run the <code>pip install -r requirements.txt</code> in the <code>entrypoint.sh</code> file before running the arguments from <code>args</code> in <code>main.workflow</code>.</li>
<li>use both <code>pip install</code> and <code>python myscript.py</code> as <code>args</code></li>
</ul>

<h2>Another example:</h2>

<p>I want to run a script that exists in my repository, then compare 2 files (its output and a file that already exists).</p>

<p>This is a process that includes <strong>two commands</strong>, whereas in the first example, the <code>pip install</code> command can be considered <strong>a building command</strong> rather than a test command.</p>

<h2>the question:</h2>

<p>Can I create another Docker for another command, which will contain the output of the previous Docker?</p>

<p>I'm looking for guidelines for the location of the command in <code>Dockerfile</code>, in <code>entrypoint</code> or in <code>args</code>.</p>
