You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the unit tests generated by Snakemake, I am unable to actually RUN the tests as the testing system does not re-set the default working directory to the project root.
Using the provided example config:
- name: Testinguses: snakemake/snakemake-github-action@v1with:
directory: '.test'snakefile: 'workflow/Snakefile'args: '--cores 1 --use-conda --conda-cleanup-pkgs cache'stagein: ''# additional preliminary commands to run (can be multiline)
the working directory is now effectively .test instead of project root (.). This is an issue if you are using relative paths to things like, say, resources or config files which is also an issue raised due to Snakemakes recent directive to encourage a new project folder structure.
A good example of this is how one references config files in your Snakefile:
When using the unit tests generated by Snakemake, I am unable to actually RUN the tests as the testing system does not re-set the default working directory to the project root.
Using the provided example config:
the working directory is now effectively
.test
instead of project root (.
). This is an issue if you are using relative paths to things like, say, resources or config files which is also an issue raised due to Snakemakes recent directive to encourage a new project folder structure.A good example of this is how one references config files in your
Snakefile
:would essentially result in the following error on GitHub Actions:
The text was updated successfully, but these errors were encountered: