Skip to content

Commit cdae5b6

Browse files
fix: keep conda env and install branch snakemake via pip on top
1 parent cb9e237 commit cdae5b6

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

action.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,7 @@ runs:
7777
- bioconda
7878
- nodefaults
7979
dependencies:
80-
EOF
81-
82-
if [[ -n "${{ inputs.snakemake-branch }}" ]]; then
83-
cat <<EOF >> .snakemake.environment.yaml
84-
- python ==3.12
85-
- pip
86-
EOF
87-
else
88-
cat <<EOF >> .snakemake.environment.yaml
8980
- snakemake ==${{ inputs.snakemake-version }}
90-
EOF
9181
fi
9282
9383
- name: Setup conda
@@ -103,8 +93,7 @@ runs:
10393
if: ${{ inputs.snakemake-branch != '' }}
10494
shell: bash -el {0}
10595
run: |
106-
conda install --only-deps snakemake==${{ inputs.snakemake-version }}
107-
python -m pip install "git+https://github.com/snakemake/snakemake@${{ inputs.snakemake-branch }}"
96+
pip install "git+https://github.com/snakemake/snakemake@${{ inputs.snakemake-branch }}"
10897
10998
- name: Display snakemake version
11099
shell: bash -el {0}

0 commit comments

Comments
 (0)