Skip to content

Commit 1a515d7

Browse files
committed
Set up Github Actions
1 parent 581aae6 commit 1a515d7

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: build
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Set up Python 3.9
12+
uses: actions/setup-python@v2
13+
with:
14+
python-version: "3.9"
15+
- name: Install dependencies
16+
run: |
17+
python -m pip install --upgrade pip
18+
pip install pytest pytest-cov coveralls
19+
- name: Install
20+
run: |
21+
pip install -e .
22+
- name: Test with pytest
23+
run: |
24+
python -m pytest --cov python_codon_tables --cov-report term-missing
25+
- name: Coveralls
26+
run: coveralls
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
COVERALLS_SERVICE_NAME: github

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ Python bindings
3434

3535
To get these tables from Python, use the [python_codon_tables](https://github.com/Edinburgh-Genome-Foundry/codon-usage-tables/tree/master/python_codon_tables) package.
3636

37-
38-
3937
Contribute
4038
----------
4139

python_codon_tables/README.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
Python Codon Tables
22
===================
33

4-
.. image:: https://travis-ci.org/Edinburgh-Genome-Foundry/codon-usage-tables.svg?branch=master
5-
:target: https://travis-ci.org/Edinburgh-Genome-Foundry/codon-usage-tables
4+
.. image:: https://github.com/Edinburgh-Genome-Foundry/codon-usage-tables/actions/workflows/build.yml/badge.svg
5+
:target: https://github.com/Edinburgh-Genome-Foundry/codon-usage-tables/actions/workflows/build.yml
6+
:alt: GitHub CI build status
67

78
Provides codon usage tables as dictionnaries, for Python 3+.
89

0 commit comments

Comments
 (0)