Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: update CI. #240

Open
wants to merge 6 commits into
base: update_deps
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 26 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,40 @@ jobs:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v1
- uses: actions/checkout@v4
with:
python-version: ${{ matrix.python }}
fetch-depth: 0

- run: pip install -U pip setuptools
- name: cache conda
uses: actions/cache@v3
env:
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key:
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }}

- name: Setup conda
uses: s-weigand/setup-conda@v1
- name: setup conda
uses: conda-incubator/setup-miniconda@3b0f2504dd76ef23b6d31f291f4913fb60ab5ff3
with:
activate-conda: true
auto-update-conda: true
python-version: 3.9
channels: conda-forge,bioconda
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
mamba-version: "*"
activate-environment: sourmash_dev
auto-activate-base: false
use-only-tar-bz2: true

- run: conda env update -n base -f environment.yml

- name: Install coverage dependencies
run: pip install pytest-cov pytest-dependency
run: pip install pytest-cov pytest-dependency setuptools

- name: Build
run: python setup.py build_ext --inplace
# - name: Build
# run: python setup.py build_ext --inplace

- name: Install charcoal
run: pip install -e .
Expand Down
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from setuptools import setup, find_packages
from setuptools import setup

CLASSIFIERS = [
"Environment :: Console",
Expand All @@ -22,14 +22,13 @@
author="C. Titus Brown and Taylor Reiter",
author_email="[email protected],[email protected]",
license="BSD 3-clause",
packages = find_packages(),
packages = ["charcoal"],
classifiers = CLASSIFIERS,
entry_points = {'console_scripts': [
'charcoal = charcoal.__main__:main'
]
},
include_package_data=True,
package_data = { "charcoal": ["Snakefile", "*.yml", "*.ipynb"] },
setup_requires = [ "setuptools>=68.2.2" ],
install_requires = ['snakemake==7.32.4', 'click>=7,<8']
)