-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 948 Bytes
/
main.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
name: CI/CD
on: push
jobs:
Dockerfile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: rendrick27/snakemake:latest
Snakemake:
needs: Dockerfile
runs-on: ubuntu-latest
container:
image: rendrick27/phylo_flow:latest
steps:
- uses: actions/checkout@v2
- name: Run Snakemake
run: snakemake --use-conda all --cores 1
PEP8:
runs-on: ubuntu-latest
container:
image: python:3.9
steps:
- uses: actions/checkout@v2
- name: Install flake8
run: pip install flake8
- name: Run flake8
run: flake8 .