Skip to content

Commit 7ae0aad

Browse files
author
Nazar F
authored
fix: add conda build to ci workflow (#293)
* fix: add conda build to ci workflow * extract version
1 parent f47e388 commit 7ae0aad

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,34 @@ jobs:
4141

4242
- name: Run tests
4343
run: pytest --cov=. --cov-report html --cov-report term --cov-fail-under=25
44+
conda-build:
45+
name: Conda build check
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v4
49+
50+
- name: Setup Miniconda
51+
uses: conda-incubator/setup-miniconda@v3
52+
with:
53+
auto-activate-base: true
54+
activate-environment: true
55+
python-version: 3.13
56+
57+
- name: Install conda tools
58+
run: conda install -y conda-build anaconda-client
59+
60+
- name: Extract version from pyproject.toml
61+
id: extract_version
62+
working-directory: .
63+
run: |
64+
VERSION=$(awk -F\" '/^version =/ { print $2; exit }' pyproject.toml)
65+
echo "VERSION=$VERSION" >> $GITHUB_ENV
66+
echo "Extracted version: $VERSION"
67+
68+
- name: Dry-run conda build
69+
shell: bash -l {0}
70+
working-directory: recipe
71+
env:
72+
VERSION: ${{ env.VERSION }}
73+
run: |
74+
conda build . --channel conda-forge --channel bioconda

0 commit comments

Comments
 (0)