From b1569f1f4dfd471d315144dc9111c6f05725e280 Mon Sep 17 00:00:00 2001 From: WardDeb Date: Tue, 13 Aug 2024 11:12:01 +0200 Subject: [PATCH] simplify conda-build action, give it a name, include graphviz as a conda dependency --- .github/condaBuildCI.yml | 5 ++--- .github/workflows/conda-build.yml | 19 ++++--------------- conda-recipe/meta.yaml | 1 + 3 files changed, 7 insertions(+), 18 deletions(-) diff --git a/.github/condaBuildCI.yml b/.github/condaBuildCI.yml index 5a0f6e853..5b981ef03 100644 --- a/.github/condaBuildCI.yml +++ b/.github/condaBuildCI.yml @@ -1,10 +1,9 @@ name: condaBuild_CI -channels: # write here the list of channels to look for your library dependencies +channels: - uibcdf - conda-forge - - defaults - bioconda - + - defaults dependencies: - anaconda-client - conda-build diff --git a/.github/workflows/conda-build.yml b/.github/workflows/conda-build.yml index 7e3efa863..d24b6033f 100644 --- a/.github/workflows/conda-build.yml +++ b/.github/workflows/conda-build.yml @@ -1,30 +1,19 @@ -on: - pull_request: - paths: - - 'pyproject.toml' - - 'conda-recipe/meta.yaml' - pull_request_target: - types: - - closed +name: conda-build + +on: [pull_request, push] jobs: condaBuild: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Conda environment creation and activation - uses: conda-incubator/setup-miniconda@v3 + - uses: conda-incubator/setup-miniconda@v3 with: python-version: 3.11 environment-file: .github/condaBuildCI.yml - #activate-environment: condaBuild_CI - #condarc-file: .github/condarc.yml auto-update-conda: false auto-activate-base: false show-channel-urls: true - # Builds the package using the standard configuration - name: buildSnakePipes uses: uibcdf/action-build-and-upload-conda-packages@v1.3.0 with: diff --git a/conda-recipe/meta.yaml b/conda-recipe/meta.yaml index e54e97dc4..be4bc3b1e 100755 --- a/conda-recipe/meta.yaml +++ b/conda-recipe/meta.yaml @@ -24,6 +24,7 @@ requirements: - graphviz - thefuzz - pyyaml >=5.1 + - graphviz test: commands: