name: Test and deploy readtagger
on: [push, pull_request]
jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        task: ['py37-lint', 'planemo']
    steps:
    - uses: actions/checkout@v2
    - run: git fetch --prune --unshallow
    - uses: s-weigand/setup-conda@v1
    - name: Install conda-build
      run: conda install conda-build
    - name: Build and install readtagger
      run: |
        conda build conda/multiprocessing-logging
        conda build conda/readtagger
        conda install --use-local readtagger
    - name: Install test dependencies
      run: conda install tox virtualenv
    - name: Cache test data
      run: curl -L https://github.com/bardin-lab/dmel-transposon-reference-data/raw/master/fasta_sequences/dm6_TE_annotations_sequences.fasta -o ~/ref.fa
    - name: Test with tox
      run: |
        tox -e '${{ matrix.task }}'

name: Test and deploy readtagger
on: [push, pull_request]
jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        task: ['py37-lint', 'planemo']
    steps:
    - uses: actions/checkout@v2
    - run: git fetch --prune --unshallow
    - uses: s-weigand/setup-conda@v1
      with:
        conda-channels: conda-forge,bioconda
    - name: Install conda-build
      run: conda install conda-build
    - name: Build and install readtagger
      run: |
        conda build conda/multiprocessing-logging
        conda build conda/readtagger
        conda install --use-local readtagger
    - name: Install test dependencies
      run: conda install tox virtualenv
    - name: Cache test data
      run: curl -L https://github.com/bardin-lab/dmel-transposon-reference-data/raw/master/fasta_sequences/dm6_TE_annotations_sequences.fasta -o ~/ref.fa
    - name: Test with tox
      run: |
        tox -e '${{ matrix.task }}'

Add bioconda and conda-forge channels
Add bioconda and conda-forge channels
