Skip to content

Commit

Permalink
Github actions for pytest & coveralls and for building and pushing to…
Browse files Browse the repository at this point in the history
… Docker Hub (#219)

* switch from Travis CI to github actions - pytest and coveralls

* run action on ubuntu latest

* remove a command

* install conda software into the base environment

* simplify how sambamba is installed

* remove a comment
  • Loading branch information
northwestwitch committed Nov 12, 2020
1 parent 9bbcb89 commit f580123
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 29 deletions.
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

0 comments on commit f580123

Please sign in to comment.