Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
js2264 committed Jul 29, 2024
0 parents commit 8de639b
Show file tree
Hide file tree
Showing 21 changed files with 1,243 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
codecov:
notify:
require_ci_to_pass: yes

coverage:
precision: 2
round: down
range: 70..100

status:
project:
default:
target: 90%
threshold: 1%
patch: no
changes: no

comment: off
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on:
push:
branches: [ devel ]
pull_request:
branches: [ devel ]

jobs:

Test:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
include:
- os: ubuntu-latest
python-version: "3.12"
# - os: windows-latest
# python-version: "3.12"
- os: macos-latest
python-version: "3.12"

runs-on: ${{ matrix.os }}
steps:

- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Run tests on ${{ matrix.os }}
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
# stop the build if there are Python syntax errors or undefined names
ruff check . --select=E9,F63,F7,F82
pytest
38 changes: 38 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: documentation

on: [push, pull_request, workflow_dispatch]

permissions:
contents: write

jobs:
docs:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: 3.12

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev,docs]
# stop the build if there are Python syntax errors or undefined names
ruff check . --select=E9,F63,F7,F82
pytest
- name: Sphinx build
run: |
sphinx-build docs/source/ docs/build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/devel' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/
force_orphan: true
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish Python Package to PyPI

on:
release:
types: [published]
workflow_dispatch:

jobs:
Publish:
# prevents this action from running on forks
if: github.repository == 'js2264/momics'

runs-on: ubuntu-latest
permissions:
id-token: write

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.x"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build
run: python -m build

- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
36 changes: 36 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
*.swp
*.swo
*~

*.py[cod]
__pycache__

# test and coverage artifacts
.cache
.pytest_cache
.coverage
.coverage.*
coverage.xml
htmlcov/

# setup and build artifacts
docs/_*
*.egg-info/
dist/
build/
MANIFEST

# dev and virtual environment
.venv/
venv/
.idea/

# OS-generated files
.DS_Store
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

tmp/
_scratch/
28 changes: 28 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.10"
# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py

# Build documentation with MkDocs
#mkdocs:
# configuration: mkdocs.yml

# Optionally build your docs in additional formats such as PDF and ePub
formats: all

# Optionally set the version of Python and requirements required to build your docs
python:
install:
- method: pip
path: .
extra_requirements:
- dev
- docs
8 changes: 8 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Release notes #

## [v0.1.0](https://github.com/js2264/momics/releases/tag/v0.1)

Date: 2024-07-29

* Working initial prototype

32 changes: 32 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
cff-version: 1.2.0
type: software
title: momics
message: >-
Please cite this software using the metadata from "preferred-citation".
abstract: >-
momics is a cloud-native, TileDB-based format for multi-omics data.
Follow momics development on GitHub.
license: "BSD-3-Clause"
# doi: "10.5281/zenodo.597976"
url: "https://js2264.github.io/momics"
repository-code: "https://github.com/js2264/momics"
keywords:
- multi-omics
- genomics
- epigenomics
- Tile-DB
- bioinformatics
- matrix
- sparse
- format
authors:
- given-names: Jacques
family-names: Serizay
orcid: "https://orcid.org/0000-0002-4295-0624"
preferred-citation:
type: software
title: "momics: a cloud-native, TileDB-based format for multi-omics data"
authors:
- given-names: Jacques
family-names: Serizay
orcid: "https://orcid.org/0000-0002-4295-0624"
Loading

0 comments on commit 8de639b

Please sign in to comment.