Merge pull request #188 from fabianegli/conda-build-maintenance #163
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Conda Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Miniconda | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: sdrf-pipelines | |
environment-file: environment.yml | |
auto-activate-base: false | |
auto-update-conda: true | |
python-version: '3.10' | |
channels: conda-forge,bioconda,defaults | |
- name: Install build dependencies | |
run: | | |
conda install conda-build conda-verify anaconda-client | |
- name: Build the sdrf-pipelines package | |
run: | | |
conda build --no-anaconda-upload --package-format .tar.bz2 recipe | |
- name: Install the package | |
run: | | |
PACKAGE_PATH=$(conda build --package-format .tar.bz2 --output recipe) | |
conda install --offline "$PACKAGE_PATH" | |
- name: Test install | |
run: | | |
parse_sdrf --help | |
- name: Test validation of SDRF file | |
run: | | |
parse_sdrf validate-sdrf --sdrf_file tests/data/reference/PDC000126/PDC000126.sdrf.tsv | |
- name: Test validation of SDRF file with cache only | |
run: | | |
parse_sdrf validate-sdrf --sdrf_file tests/data/reference/PDC000126/PDC000126.sdrf.tsv --use_ols_cache_only |