diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..3378c26 --- /dev/null +++ b/.github/workflows/build.yml @@ -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 diff --git a/README.rst b/README.rst index e145492..8d5f6c5 100644 --- a/README.rst +++ b/README.rst @@ -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 @@ -32,8 +32,8 @@ Test with Pytest: .. code:: bash - python -m pytest - # or simply "pytest" + pytest --cov=snapgene_reader tests/ + Licence = MIT ------------- diff --git a/setup.py b/setup.py index 4c917f7..301ec30 100644 --- a/setup.py +++ b/setup.py @@ -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.",