Skip to content

Commit d1c3643

Browse files
committed
Save integration logs in standard location
1 parent 52e70c3 commit d1c3643

4 files changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/template-pr-ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,9 @@ jobs:
2020
run: pixi run pytest tests/clio_test.py
2121
- name: Run linting
2222
run: pixi run snakemake --lint
23+
- name: Archive integration test artifacts
24+
uses: actions/upload-artifact@v4
25+
with:
26+
name: integration-test-logs
27+
path: tests/integration/results/integration_test/logs
28+
retention-days: 30

pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ ruff = ">=0.9.9"
1717
pyyaml = ">=6.0.2"
1818

1919
[tasks]
20-
test = {cmd = "pytest tests/"}
20+
test-integration = {cmd = "pytest tests/clio_test.py"}

template/README.md.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pixi install --all
2323
For testing, simply run:
2424

2525
```shell
26-
pixi run test
26+
pixi run test-integration
2727
```
2828

2929
To view the documentation locally, use:
@@ -37,5 +37,5 @@ To test a minimal example of a workflow using this module:
3737
```shell
3838
pixi shell # activate this project's environment
3939
cd tests/integration/ # navigate to the integration example
40-
snakemake --use-conda # run the workflow!
40+
snakemake --use-conda 2 # run the workflow!
4141
```

template/tests/integration/{% if true %}Snakefile{% endif %}.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ rule create_external_input:
2323
module {{module_short_name}}:
2424
snakefile: "../../workflow/Snakefile"
2525
config: config["{{module_short_name}}"]
26-
prefix: "results/{{module_short_name}}/"
26+
prefix: "results/integration_test/"
2727

2828
# rename all module rules with a prefix, to avoid naming conflicts.
2929
use rule * from {{module_short_name}} as {{module_short_name}}_*
@@ -33,4 +33,4 @@ rule all:
3333
message: "A generic test case for your module."
3434
default_target: True
3535
input:
36-
"results/{{module_short_name}}/results/combined_text.md"
36+
"results/integration_test/results/combined_text.md"

0 commit comments

Comments
 (0)