From 4c1c4547f1fdb7644cacf7cf139defc6e53e169c Mon Sep 17 00:00:00 2001 From: nazarfil Date: Wed, 9 Jul 2025 09:36:34 +0200 Subject: [PATCH 1/2] fix: add conda build to ci workflow --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e10c93d4..a1d225df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,3 +41,24 @@ jobs: - name: Run tests run: pytest --cov=. --cov-report html --cov-report term --cov-fail-under=25 + conda-build: + name: Conda build check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup Miniconda + uses: conda-incubator/setup-miniconda@v3 + with: + auto-activate-base: true + activate-environment: true + python-version: 3.13 + + - name: Install conda tools + run: conda install -y conda-build anaconda-client + + - name: Dry-run conda build + shell: bash -l {0} + working-directory: recipe + run: | + conda build . --channel conda-forge --channel bioconda \ No newline at end of file From 735cdc53eee39eb6b61fbc3961ada5f7843480e1 Mon Sep 17 00:00:00 2001 From: nazarfil Date: Wed, 9 Jul 2025 09:53:48 +0200 Subject: [PATCH 2/2] extract version --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a1d225df..341a805f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,8 +57,18 @@ jobs: - name: Install conda tools run: conda install -y conda-build anaconda-client + - name: Extract version from pyproject.toml + id: extract_version + working-directory: . + run: | + VERSION=$(awk -F\" '/^version =/ { print $2; exit }' pyproject.toml) + echo "VERSION=$VERSION" >> $GITHUB_ENV + echo "Extracted version: $VERSION" + - name: Dry-run conda build shell: bash -l {0} working-directory: recipe + env: + VERSION: ${{ env.VERSION }} run: | conda build . --channel conda-forge --channel bioconda \ No newline at end of file