Skip to content

Commit

Permalink
fix conda pytests cf nf-core#7215
Browse files Browse the repository at this point in the history
  • Loading branch information
maxulysse committed Dec 13, 2024
1 parent 439f056 commit a268a97
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/pytest-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ env:
NXF_SINGULARITY_LIBRARYDIR: ${{ github.workspace }}/.singularity
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# renovate: datasource=github-releases depName=nextflow-io/nextflow versioning=semver
NXF_VER: "24.10.1"
NXF_VER: "24.10.2"

jobs:
pytest-changes:
Expand Down Expand Up @@ -278,20 +278,13 @@ jobs:
mkdir -p $NXF_SINGULARITY_CACHEDIR
mkdir -p $NXF_SINGULARITY_LIBRARYDIR
- name: Set up miniconda
- name: Conda setup
if: matrix.profile == 'conda'
uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3
with:
miniconda-version: "latest"
channels: conda-forge,bioconda
python-version: "3.11"

- name: Conda setup
run: |
conda clean -a
conda install -n base conda-libmamba-solver
conda config --set solver libmamba
echo $(realpath $CONDA)/condabin >> $GITHUB_PATH
echo $(realpath python) >> $GITHUB_PATH
auto-update-conda: true
conda-solver: libmamba
conda-remove-defaults: true

# Test the module
- name: Run pytest-workflow
Expand Down
4 changes: 2 additions & 2 deletions tests/config/nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ if ("$PROFILE" == "singularity") {
singularity.enabled = true
singularity.autoMounts = true
} else if ("$PROFILE" == "conda") {
conda.enabled = true
conda.useMicromamba = true
conda.enabled = true
conda.channels = ['conda-forge', 'bioconda']
} else if ("$PROFILE" == "mamba") {
conda.enabled = true
conda.useMamba = true
Expand Down

0 comments on commit a268a97

Please sign in to comment.