-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from USDA-ARS-GBRU/version2
Version2
- Loading branch information
Showing
95 changed files
with
3,656 additions
and
987 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
**/__pycache__ | ||
**/.venv | ||
**/.classpath | ||
**/.dockerignore | ||
**/.env | ||
**/.git | ||
**/.gitignore | ||
**/.project | ||
**/.settings | ||
**/.toolstarget | ||
**/.vs | ||
**/.vscode | ||
**/*.*proj.user | ||
**/*.dbmdl | ||
**/*.jfm | ||
**/bin | ||
**/charts | ||
**/docker-compose* | ||
**/compose* | ||
**/Dockerfile* | ||
**/node_modules | ||
**/npm-debug.log | ||
**/obj | ||
**/secrets.dev.yaml | ||
**/values.dev.yaml | ||
LICENSE | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: publish | ||
|
||
|
||
on: [push] | ||
|
||
|
||
jobs: | ||
|
||
publish-itsxpress-image: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
|
||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
|
||
- name: Build the itsxpress Docker image | ||
|
||
run: | | ||
echo $CR_PAT | docker login ghcr.io -u seina001 --password-stdin | ||
env: | ||
|
||
CR_PAT: ${{ secrets.CR_PAT }} | ||
|
||
- name: Publish image | ||
run: | | ||
docker build . --tag ghcr.io/usda-ars-gbru/itsxpress:latest | ||
docker push ghcr.io/usda-ars-gbru/itsxpress:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: GitHub Actions Weekly Build (V2) | ||
|
||
on: | ||
push: | ||
branches: | ||
- version2 | ||
schedule: | ||
- cron: "0 0 */7 * *" | ||
|
||
jobs: | ||
build-linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.8.13' | ||
- run: | | ||
sudo apt update | ||
sudo apt install gcc-10 g++-10 | ||
- name: Add conda to system path | ||
run: | | ||
# $CONDA is an environment variable pointing to the root of the miniconda directory | ||
echo $CONDA/bin >> $GITHUB_PATH | ||
- name: Initiate conda channels | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: testenv | ||
python-version: 3.8.13 | ||
channels: conda-forge,bioconda | ||
allow-softlinks: true | ||
channel-priority: flexible | ||
show-channel-urls: true | ||
use-only-tar-bz2: true | ||
|
||
- name: Set up environment | ||
run: | | ||
wget https://data.qiime2.org/distro/core/qiime2-2022.8-py38-linux-conda.yml | ||
conda env create -n qiime2-2022.8 --file qiime2-2022.8-py38-linux-conda.yml | ||
- name: Install Dependencies | ||
run: | | ||
source activate qiime2-2022.8 | ||
conda install biopython | ||
pip install pyzstd | ||
pip install pytest | ||
pip install . | ||
- name: Test with pytest | ||
run: | | ||
source activate qiime2-2022.8 | ||
pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM condaforge/mambaforge:4.10.3-5 | ||
|
||
# # Install system dependencies | ||
RUN apt-get update && \ | ||
apt-get install -y build-essential && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
LABEL org.opencontainers.image.source="https://github.com/usda-ars-gbru/itsxpress" | ||
# Install conda dependencies | ||
RUN conda update mamba -c conda-forge | ||
RUN mamba install -c conda-forge python=3.8.16 | ||
RUN mamba install -c bioconda vsearch=2.22.1 hmmer=3.1b2 | ||
|
||
# Copy the itsxpress package files and install dependencies | ||
COPY . /app | ||
WORKDIR /app | ||
RUN pip install --no-cache-dir . | ||
|
||
# Set the default command to run itsxpress | ||
CMD ["itsxpress"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
include itsxpress/ITSx_db/HMMs/* | ||
include tests/test_data/* | ||
include tests/test_data/ex_tmpdir/* | ||
include tests/test_main_pytest.py | ||
include LICENSE.txt | ||
include itsxpress/citations.bib | ||
include changelog.md | ||
include Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.