Skip to content

Commit

Permalink
Release 0.8.0
Browse files Browse the repository at this point in the history
PR for release 0.8.0
  • Loading branch information
farchaab authored Apr 17, 2024
2 parents f4c10cc + c811b49 commit 87637f5
Show file tree
Hide file tree
Showing 138 changed files with 16,303 additions and 2,376 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build images / docs
on:
push:
branches:
- master
- main
# Cancel if a newer run is started
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
rich_codex:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.x

- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache

- name: Install requirements for docs
run: pip install mkdocs-material .

- name: Generate terminal images with rich-codex
uses: ewels/rich-codex@v1
with:
commit_changes: "true"
clean_img_paths: docs/imgages/*.svg
skip_git_checks: "true"
terminal_width: 85

- name: Build and deploy docs
run: mkdocs gh-deploy --force
60 changes: 60 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Unit tests

on:
push:
branches: ["main"]
paths:
- ".github/workflows/unit-tests.yaml"
- "tests/**"
- "mess/**"
- "setup.py"
pull_request:
branches: ["main"]
paths:
- ".github/workflows/unit-tests.yaml"
- "tests/**"
- "mess/**"
- "setup.py"

permissions:
contents: read

jobs:
tests:
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}

defaults:
run:
shell: bash -el {0}

strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest]
python-version: ["3.10", "3.12"]

steps:
- uses: "actions/checkout@v3"
with:
fetch-depth: 0

- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
miniforge-version: "latest"
miniforge-variant: Mambaforge
use-mamba: true
mamba-version: "*"
channels: conda-forge,bioconda,defaults
channel-priority: strict
activate-environment: mess
python-version: ${{ matrix.python-version }}
auto-activate-base: false

- name: "Test and generate coverage report on ${{ matrix.os }} for Python ${{ matrix.python-version }}"
run: |
python -m pip install --upgrade pip
python -m pip install pytest coverage
python -m pip install .
coverage run -m pytest
20 changes: 18 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
.idea/
.snakemake/
mess.egg-info/
mess/__pycache__
build/

htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
tests/__pycache__
.pytest_cache

.snakemake
mess/workflow/conda
mess/workflow/taxonkit
Loading

0 comments on commit 87637f5

Please sign in to comment.