diff --git a/.github/workflows/template-check-version.yml b/.github/workflows/template-check-version.yml index b5ef426..944149f 100644 --- a/.github/workflows/template-check-version.yml +++ b/.github/workflows/template-check-version.yml @@ -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 diff --git a/template/tests/clio_test.py.jinja b/template/tests/clio_test.py.jinja index 5fe141b..fcd4971 100644 --- a/template/tests/clio_test.py.jinja +++ b/template/tests/clio_test.py.jinja @@ -40,7 +40,7 @@ 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) @@ -48,7 +48,7 @@ def test_snakemake_all_failure(module_path): 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",