diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e10c93d4..341a805f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,3 +41,34 @@ 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: 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