Skip to content

Bump Container (#161) #137

Bump Container (#161)

Bump Container (#161) #137

Workflow file for this run

name: Container Builds
on:
push:
branches:
- 'main'
jobs:
build-docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push BayesTME container
uses: docker/build-push-action@v3
with:
push: true
tags: |
jeffquinnmsk/bayestme:latest
jeffquinnmsk/bayestme:${{ github.sha }}
cache-from: type=registry,ref=jeffquinnmsk/bayestme:latest
cache-to: type=inline
nextflow-integration:
runs-on: ubuntu-20.04
name: pytest
needs: build-docker
env:
NXF_ANSI_LOG: false
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Python dependencies
run: python -m pip install --upgrade pip pytest-workflow cryptography
- name: Setup Nextflow
uses: nf-core/setup-nextflow@v1
- name: Run pytest-workflow
working-directory: ./nextflow
run: TMPDIR=~ PROFILE=${{ matrix.profile }} pytest --symlink --kwdof --git-aware --color=yes