Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-commit fix #565

Merged
merged 5 commits into from
Jan 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,29 @@ wildcard_constraints:


rule clean:
run:
shell("snakemake -j 1 solve_all_networks --delete-all-output")
shell:
"snakemake -j 1 solve_all_networks --delete-all-output"


rule run_tests:
input:
"",
run:
import os

shell("snakemake --cores all build_test_configs")
directory = "test/tmp" # assign directory
for filename in os.scandir(directory): # iterate over files in that directory
for filename in os.scandir(
directory
): # iterate over files in that directory
if filename.is_file():
print(filename.path)
shell("cp {filename.path} config.yaml")
shell("snakemake --cores all solve_all_networks --forceall")
# shell("rm -r config.yaml")
print("Tests are successful.")



rule solve_all_networks:
input:
expand(
Expand Down