Skip to content

further development #137

further development

further development #137

name: cgat-flow
on: [push, pull_request]
jobs:
build:
name: Ex1 (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.7"]
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- name: Cache conda
uses: actions/cache@v1
env:
# Increase this value to reset cache if conda/environments/cgat-core.yml has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key:
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
hashFiles('conda/environments/cgat-apps.yml') }}
- uses: conda-incubator/setup-miniconda@v2
with:
mamba-version: "*"
python-version: ${{ matrix.python-version }}
channels: conda-forge, bioconda, defaults
channel-priority: true
activate-environment: cgat-flow
environment-file: conda/environments/cgat-flow-pipelines.yml
- name: Show conda
run: |
conda info
conda list
- name: Test
run: |
python setup.py install
pip install nose
nosetests -v tests/test_import.py
nosetests -v tests/test_style.py
nosetests -v tests/test_scripts.py