Skip to content

Commit

Permalink
Update gh actions and test
Browse files Browse the repository at this point in the history
  • Loading branch information
khourhin committed Oct 20, 2023
1 parent f9ead94 commit 9e209a5
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 99 deletions.
31 changes: 20 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,32 @@ jobs:
strategy:
max-parallel: 5
matrix:
python: ["3.10"]
python: ["3.10", "3.11"]
fail-fast: false

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.X
uses: actions/setup-python@v2
- uses: mamba-org/setup-micromamba@v1
with:
python-version: ${{ matrix.python }}

- name: bedtools
run: |
sudo apt-get install -y bedtools
micromamba-version: '1.3.1-0'
cache-environment: true
environment-name: installation
condarc: |
channels:
- conda-forge
- bioconda
- defaults
create-args: >-
python=${{ matrix.python }}
bedtools
- name: Checkout repo
uses: actions/checkout@v3

- name: Install the package itself
run: |
pip install .
shell: bash -el {0}
run: pip install .

- name: Test with pytest
shell: bash -el {0}
run: |
pip install pytest
pip install pytest-cov
Expand Down
30 changes: 30 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[tool.poetry]
name = "telofinder"
version = "1.0.0"
description = "A python package to determine the location and the size of telomeric repeats (both terminal and internal) from genome assemblies."
authors = ["Gilles Fischer"]
readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.10,<3.13"
biopython = "^1.81"
numpy = "^1.26.1"
pandas = "^2.1.1"
pybedtools = "^0.9.1"
pysam = "^0.22.0"
python-dateutil = "^2.8.2"
pytz = "^2023.3.post1"
six = "^1.16.0"
numpydoc = "^1.6.0"
matplotlib = "^3.8.0"


[tool.poetry.group.test.dependencies]
pytest = "^7.4.2"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.scripts]
telofinder = "telofinder.main:main"
10 changes: 0 additions & 10 deletions requirements.txt

This file was deleted.

77 changes: 0 additions & 77 deletions setup.py

This file was deleted.

2 changes: 1 addition & 1 deletion test/test_telomer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@


def test_run_on_single_fasta():
df = tf.run_on_single_fasta(filename, 0.8, 0.8, 8000, 1)
df = tf.run_on_single_fasta(filename, 0.8, 0.8, 8000, "both", 1)

0 comments on commit 9e209a5

Please sign in to comment.