Skip to content

Commit 80ea757

Browse files
committed
Version propre du code sans les gros fichiers
0 parents  commit 80ea757

310 files changed

Lines changed: 59538 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.coverage

52 KB
Binary file not shown.

.github/workflows/build.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: build
2+
3+
on: [push]
4+
5+
6+
env:
7+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true # ← ajouter ça
8+
9+
jobs:
10+
build-linux:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
max-parallel: 5
14+
15+
steps:
16+
17+
- name: Checkout repo
18+
uses: actions/checkout@v4
19+
20+
- name: Create micromamba env. for package
21+
uses: mamba-org/setup-micromamba@v2
22+
with:
23+
generate-run-shell: true
24+
environment-file: environment.yml
25+
post-cleanup: none # ← évite les erreurs de nettoyage
26+
27+
- name: Install package
28+
run: |
29+
pip install .
30+
shell: micromamba-shell {0}
31+
32+
- name: Check installed package
33+
run: |
34+
hicberg --version
35+
bowtie2 --version
36+
shell: micromamba-shell {0}
37+
38+
- name: Lint and test
39+
run: |
40+
pip install pytest-pylint pytest pytest-cov pylint codecov mappy
41+
pytest --pylint --pylint-error-types=EF --pylint-rcfile=.pylintrc --doctest-modules hicberg
42+
coverage run --source=hicberg -m pytest -v tests
43+
coverage report -m
44+
coverage xml
45+
shell: micromamba-shell {0}
46+
47+
- name: Upload coverage reports to Codecov
48+
uses: codecov/codecov-action@v5
49+
env:
50+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/gh-pages.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build and deploy Github pages
2+
'on':
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
build-and-deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
with:
13+
persist-credentials: false
14+
- name: Set up Python
15+
uses: actions/setup-python@v1
16+
with:
17+
python-version: 3.11
18+
- name: Install Python dependencies
19+
run: |
20+
pip3 install setuptools
21+
pip3 install sphinx sphinx-rtd-theme
22+
pip install nbsphinx
23+
sudo apt-get install -y pandoc
24+
25+
- name: Build Sphinx Doc
26+
run: |
27+
make -C docs clean
28+
make -C docs html
29+
- name: Deploy Github Pages
30+
uses: JamesIves/github-pages-deploy-action@3.7.1
31+
with:
32+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
33+
BRANCH: gh-pages
34+
FOLDER: docs/_build/html/
35+
CLEAN: true

.github/workflows/publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
name: Upload Python Package on PyPI
3+
4+
on:
5+
release:
6+
types: [created]
7+
8+
9+
jobs:
10+
deploy:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Set up Python 3.11
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: '3.11'
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install setuptools wheel twine
24+
- name: Build package
25+
run: python setup.py sdist bdist_wheel
26+
- name: Publish package
27+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
28+
with:
29+
user: __token__
30+
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/tests.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: '3.10'
20+
21+
- name: Install system dependencies (bowtie2, samtools)
22+
run: |
23+
sudo apt-get update
24+
sudo apt-get install -y bowtie2 samtools
25+
26+
- name: Install Python dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install -e .
30+
pip install pytest pytest-cov
31+
32+
- name: Run tests with coverage
33+
id: pytest
34+
continue-on-error: true
35+
run: python -m pytest tests/ --cov=hicberg --cov-report=xml --cov-report=term-missing
36+
37+
- name: Upload coverage to Codecov
38+
if: always()
39+
uses: codecov/codecov-action@v4
40+
with:
41+
files: ./coverage.xml
42+
fail_ci_if_error: false
43+
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Ignore logfiles
2+
*.log
3+
sandbox.py
4+
5+
# Ignore hicberg/combined.bam
6+
*.bam
7+
hicberg/combined.bam

0 commit comments

Comments
 (0)