Skip to content
Merged
Show file tree
Hide file tree
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
15 changes: 7 additions & 8 deletions .github/workflows/template-check-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,20 @@ jobs:
with:
ref: "latest" # This avoids comparing against development versions.

- name: Setup pixi
uses: prefix-dev/setup-pixi@v0.8.3
- uses: mamba-org/setup-micromamba@v2
with:
environment-name: ${{ github.event.repository.name }}-copier
create-args: copier python=3.12
post-cleanup: all
cache-environment: true

- name: Add copier, install it, and stash to avoid 'dirty' copier warnings
run: |
pixi add copier
pixi install
git stash push -m "Stash pixi lock and toml" -- pixi.lock pixi.toml
- name: Add dummy GitHub credentials
run: |
git config --global user.name Copier update
git config --global user.email check@dummy.bot.com

- name: Run copier update
run: pixi run copier update --skip-answered --defaults
run: copier update --skip-answered --defaults

- name: Check for template changes
run: test -z "$(git status --porcelain)" || echo "UPDATE=true" >> $GITHUB_ENV
Expand Down
4 changes: 2 additions & 2 deletions template/tests/clio_test.py.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ def test_standard_file_existance(module_path, file):
def test_snakemake_all_failure(module_path):
"""The snakemake 'all' rule should return an error by default."""
process = subprocess.run(
"snakemake", shell=True, cwd=module_path, capture_output=True
"snakemake --cores 4", shell=True, cwd=module_path, capture_output=True
)
assert "INVALID (missing locally)" in str(process.stderr)


def test_snakemake_integration_testing(module_path):
"""Run a light-weight test simulating someone using this module."""
assert subprocess.run(
"snakemake --use-conda",
"snakemake --use-conda --cores 4",
shell=True,
check=True,
cwd=module_path / "tests/integration",
Expand Down
Loading