Skip to content

Bump v0.6.0

Bump v0.6.0 #31

Workflow file for this run

name: Combined E2E tests for DAJIN2
on:
push:
jobs:
e2e_tests:
name: E2E tests for DAJIN2
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 6
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.12"]
test-case: [cables2_flox, stx2_deletion, tyr_substitution]
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
miniconda-version: "latest"
activate-environment: test-env
channels: bioconda, conda-forge, defaults
- name: Create and activate conda environment
run: |
conda create -y -n env-dajin2 python=${{ matrix.python-version }} pip pytest
conda activate env-dajin2
- name: Install DAJIN2 and dependencies
run: |
pip install -e .
- name: Execute specific test case
env:
PYTHONPATH: src
run: |
case="${{ matrix.test-case }}"
if [ "$case" == "cables2_flox" ]; then
if [ ! -d example_flox ]; then
curl -LJO /~https://github.com/akikuno/DAJIN2/raw/main/examples/example_flox.tar.gz
tar -xf example_flox.tar.gz
fi
DAJIN2 batch --file example_flox/batch.xlsx --threads 4 --debug || exit 1
elif [ "$case" == "stx2_deletion" ]; then
if [ ! -d example_single ]; then
curl -LJO /~https://github.com/akikuno/DAJIN2/raw/main/examples/example_single.tar.gz
tar -xf example_single.tar.gz
fi
DAJIN2 \
--control example_single/control \
--sample example_single/sample \
--allele example_single/stx2_deletion.fa \
--name stx2_deletion \
--genome mm39 \
--threads 4 \
--debug || exit 1
elif [ "$case" == "tyr_substitution" ]; then
if [ ! -d example_batch ]; then
curl -LJO /~https://github.com/akikuno/DAJIN2/raw/main/examples/example_batch.tar.gz
tar -xf example_batch.tar.gz
fi
TODAY=$(date -u "+%Y%m%d")
sed "s|tyr_c230gt|tyr_c230gt_${TODAY}|" example_batch/batch.csv > /tmp/tmp_batch.csv
DAJIN2 batch --file /tmp/tmp_batch.csv --threads 4 --debug || exit 1
fi