title: PyCharm pytest and environment variables not working
body: <p>I', using Pycharm in Ubuntu using python 3.7 and 3.8, and I'm facing two problems:</p>
  <ol>
  <li>I'm using pytest, when I try to run it using run 'pytest  for.. it doesn't show the test window and prints nothing, just &quot;Process finished with exit code 0&quot;</li>
  </ol>
  <p>If I run the test with pytest filename.py it works just fine.</p>
  <p>What could be missing? From File -&gt; Settings -&gt; Tools -&gt; Python Integrated Tools -&gt; Default test runner is already set to pytest</p>
  <p><a href="https://i.stack.imgur.com/xskom.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xskom.png" alt="enter image description here" /></a></p>
  <ol start="2">
  <li>I'm setting environment variables as shown bellow, but when trying to import it, it gets None</li>
  </ol>
  <pre><code>    import os
  
  print(os.environ.get('SECRET_KEY'))
  </code></pre>
  <p><a href="https://i.stack.imgur.com/KHXpP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KHXpP.png" alt="enter image description here" /></a></p>