Skip to content

Commit

Permalink
Merge pull request #20 from metagenlab/dev
Browse files Browse the repository at this point in the history
Update macos test to latest
  • Loading branch information
farchaab authored Aug 21, 2024
2 parents 8c08f5f + da1f383 commit 050dff4
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 26 deletions.
50 changes: 39 additions & 11 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,20 @@ permissions:
contents: read

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

linux:
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -el {0}

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

fail-fast: false
name: Linux Python ${{ matrix.python-version }}
steps:
- uses: "actions/checkout@v3"
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
Expand All @@ -51,8 +46,41 @@ jobs:
activate-environment: assembly_finder
python-version: ${{ matrix.python-version }}
auto-activate-base: false
- name: "Test and generate coverage report for Linux 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
- name: "Test and generate coverage report on ${{ matrix.os }} for Python ${{ matrix.python-version }}"
osx:
runs-on: "macos-latest"
defaults:
run:
shell: bash -el {0}
strategy:
matrix:
python-version: ["3.12"]
architecture: ["x64"]
fail-fast: false
name: OSX Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
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: assembly_finder
python-version: ${{ matrix.python-version }}
auto-activate-base: false
- name: "Test and generate coverage report for Linux python ${{ matrix.python-version }}"
run: |
python -m pip install --upgrade pip
python -m pip install pytest coverage
Expand Down
33 changes: 22 additions & 11 deletions assembly_finder/config/config.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
args:
annotated:
api_key:
assembly_level:
atypical:
compressed:
conda_prefix:
configfile:
include:
input:
output:
taxonkit:
limit:
log:
mag:
nrank:
output:
print_versions:
profile:
rank:
reference:
requests:
compressed:
include:
snake_args:
snake_default:
source:
system_config:
taxon:
reference:
assembly_level:
annotated:
atypical:
mag:
rank:
nrank:
taxonkit:
threads:
use_conda:

links:
taxdump: https://ftp.ncbi.nih.gov/pub/taxonomy/taxdump.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion assembly_finder/workflow/envs/unzip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ channels:
- conda-forge
- defaults
dependencies:
- unzip =6.0
- p7zip =16.02
2 changes: 1 addition & 1 deletion assembly_finder/workflow/rules/download.smk
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ rule unzip_archive:
os.path.join(dir.env, "unzip.yml")
shell:
"""
unzip {input} -d {output} &> {log}
7z x -o{output} {input} &> {log}
"""


Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ def get_data_files():
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Bio-Informatics",
Expand All @@ -42,7 +41,7 @@ def get_data_files():
name="assembly_finder",
packages=find_namespace_packages(),
url="https://github.com/metagenlab/assembly_finder",
python_requires=">=3.10",
python_requires=">=3.11",
description="Snakemake-powered cli to download genomes using NCBI datasets",
long_description=get_description(),
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 050dff4

Please sign in to comment.