Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github actions for pytest & coveralls and for building and pushing to Docker Hub #219

Merged
merged 6 commits into from
Nov 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/docker_build_n_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish to Docker Hub

on:
release:
types:
- created
jobs:
docker-image-CI:
name: Docker Image CI
runs-on: ubuntu-latest
steps:
- name: Check out git repository
uses: actions/checkout@v2
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: clinicalgenomics/chanjo
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "latest,${{ github.event.release.tag_name }}"
26 changes: 26 additions & 0 deletions .github/workflows/pytest_n_coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Tests and coverage
on: [pull_request]
jobs:
Pytest_Coveralls:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@master
with:
python-version: 3.7
- name: Install Sambamba
run: |
brew install brewsci/bio/sambamba
- name: Install repo and its dependencies
run: |
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install -e .
pip install coveralls
- name: Run pytest and coveralls
run: |
pytest --cov=chanjo tests/
coveralls
env:
GITHUB_TOKEN: ${{ github.token }}
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Added
- User can pass on file with row separated gene IDs for coverage calculation
- Dockerfile
- Added the Docker image build and push triggered by new releases
- Added githib action running pytest and coveralls

## [4.3.0] - 2020-02-05

Expand Down