-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (52 loc) · 1.62 KB
/
containers.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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