Skip to content

Commit

Permalink
Switch to github actions and use Python 3.9
Browse files Browse the repository at this point in the history
Could not migrate to Travis.com.
  • Loading branch information
veghp committed May 4, 2022
1 parent 7fae27c commit ec481b8
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 5 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov coveralls
- name: Install
run: |
pip install -e .
- name: Test with pytest
run: |
python -m pytest --cov snapgene_reader --cov-report term-missing
- name: Coveralls
run: coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_SERVICE_NAME: github
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
SnapGene Reader
===============

.. image:: https://travis-ci.org/Edinburgh-Genome-Foundry/SnapGeneReader.svg?branch=master
:target: https://travis-ci.org/Edinburgh-Genome-Foundry/SnapGeneReader
.. image:: https://github.com/Edinburgh-Genome-Foundry/Flametree/actions/workflows/build.yml/badge.svg
:target: https://github.com/Edinburgh-Genome-Foundry/Flametree/actions/workflows/build.yml
:alt: Travis CI build status

.. image:: https://coveralls.io/repos/github/Edinburgh-Genome-Foundry/SnapGeneReader/badge.svg?branch=master
Expand Down Expand Up @@ -32,8 +32,8 @@ Test with Pytest:

.. code:: bash
python -m pytest
# or simply "pytest"
pytest --cov=snapgene_reader tests/
Licence = MIT
-------------
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name="snapgene_reader",
version="0.1.19",
version="0.1.20",
author="yishaluo",
maintainer="EdinburghGenomeFoundry",
description="Convert Snapgene *.dna files dict/json/biopython.",
Expand Down

0 comments on commit ec481b8

Please sign in to comment.