Skip to content

Merge pull request #42 from sanger/dpl-753-2-process-qc-fields #192

Merge pull request #42 from sanger/dpl-753-2-process-qc-fields

Merge pull request #42 from sanger/dpl-753-2-process-qc-fields #192

Workflow file for this run

name: CI
on:
push:
branches:
- develop-*
- develop
- master
pull_request:
branches:
- develop-*
- develop
- master
jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: nelonoel/[email protected]
- name: Build and tag the image for testing and release
run: >-
docker build .
--file Dockerfile
--tag tol-lab-share:black
- name: Run tests against the image
run: >-
docker run
--entrypoint ''
tol-lab-share:black
python -m black --check .
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: nelonoel/[email protected]
- name: Build and tag the image for testing and release
run: >-
docker build .
--file Dockerfile
--tag tol-lab-share:flake8
- name: Run tests against the image
run: >-
docker run
--entrypoint ''
tol-lab-share:flake8
flake8
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: nelonoel/[email protected]
- name: Build and tag the image for testing and release
run: >-
docker build .
--file Dockerfile
--tag tol-lab-share:mypy
- name: Run tests against the image
run: >-
docker run
--entrypoint ''
tol-lab-share:mypy
python -m mypy .
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: nelonoel/[email protected]
- name: Build and tag the image for testing and release
run: >-
docker build .
--file Dockerfile
--tag tol-lab-share:pytest
- name: Run tests against the image
run: >-
docker run
--entrypoint ''
tol-lab-share:pytest
python -m pytest -vx --cov=.