title: Is there a way to change the location of pytest's .cache directory?
body: <p>I need to be able to change the location of pytest's .cache directory to the env variable, WORKSPACE. Due to server permissions out of my control, I am running into this error because my user does not have permission to write in the directory where the tests are being run from:</p>
  
  <pre><code>py.error.EACCES: [Permission denied]: open('/path/to/restricted/directory/tests/.cache/v/cache/lastfailed', 'w')
  </code></pre>
  
  <p>Is there a way to set the path of the .cache directory to the environment variable WORKSPACE?</p>