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

build and dependency updates #37

Merged
merged 8 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from 5 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
21 changes: 10 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ name: "viral-assemble CI"

on:
push:
merge_group:
pull_request:
branches:
- master
release:
types:
- created
schedule:
- cron: '0 18 * * 1' # weekly at 18:00 on Mondays

env:
HOME: "${{ github.workspace }}"
Expand Down Expand Up @@ -45,9 +44,9 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
# fetch git tags (tagged releases) because
# actions/checkout@v3 does either a full checkout or a shallow checkout without tags
# actions/checkout@v4 does either a full checkout or a shallow checkout without tags
- name: fetch tags
run: git fetch --prune --unshallow --tags
- name: Programmatic environment setup
Expand Down Expand Up @@ -75,15 +74,15 @@ jobs:
echo "GITHUB_ACTIONS_BRANCH=$GITHUB_ACTIONS_BRANCH" >> $GITHUB_ENV

- name: Login to docker registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.DOCKER_REGISTRY }}
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
# cache; see: https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows
- name: setup cache
id: docker_cache
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: old-docker-tag
with:
Expand Down Expand Up @@ -143,9 +142,9 @@ jobs:
PYTEST_ADDOPTS: "-rsxX -n 2 --durations=25 --fixture-durations=10 --junit-xml=pytest.xml --cov-report= --cov assembly --cov assemble"
steps:
- name: checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
# fetch git tags (tagged releases) because
# actions/checkout@v3 does either a full checkout or a shallow checkout without tags
# actions/checkout@v4 does either a full checkout or a shallow checkout without tags
- name: fetch tags
run: git fetch --prune --unshallow --tags
- name: Programmatic environment setup
Expand All @@ -172,7 +171,7 @@ jobs:
echo "GITHUB_ACTIONS_BRANCH=$GITHUB_ACTIONS_BRANCH"
echo "GITHUB_ACTIONS_BRANCH=$GITHUB_ACTIONS_BRANCH" >> $GITHUB_ENV
- name: install python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "${{ env.GITHUB_ACTIONS_PYTHON_VERSION }}"
- name: Set up Docker Buildx
Expand Down Expand Up @@ -202,9 +201,9 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
# fetch git tags (tagged releases) because
# actions/checkout@v3 does either a full checkout or a shallow checkout without tags
# actions/checkout@v4 does either a full checkout or a shallow checkout without tags
- name: fetch tags
run: git fetch --prune --unshallow --tags
- name: Programmatic environment setup
Expand Down
8 changes: 7 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
# Required
version: 2

# Set the version of Python
build:
os: ubuntu-20.04
tools:
python: "3.10"

# Build documentation in the docs/ directory with Sphinx
sphinx:
builder: html
Expand All @@ -19,6 +25,6 @@ formats: all

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.8
version: 3.10
install:
- requirements: docs/requirements.txt
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM quay.io/broadinstitute/viral-core:2.2.4
FROM quay.io/broadinstitute/viral-core:2.3.0

LABEL maintainer "[email protected]"

ENV VIRAL_ASSEMBLE_PATH=$INSTALL_PATH/viral-assemble

COPY requirements-conda.txt $VIRAL_ASSEMBLE_PATH/
RUN $VIRAL_NGS_PATH/docker/install-conda-dependencies.sh $VIRAL_ASSEMBLE_PATH/requirements-conda.txt
RUN $VIRAL_NGS_PATH/docker/install-conda-dependencies.sh $VIRAL_ASSEMBLE_PATH/requirements-conda.txt $VIRAL_NGS_PATH/requirements-conda.txt

# Copy all source code into the base repo
# (this probably changes all the time, so all downstream build
Expand Down
8 changes: 7 additions & 1 deletion requirements-conda.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
gap2seq=3.1.1a
mafft>=7.508
mafft>=7.520
mummer4>=4.0.0rc1
muscle=3.8.1551
spades>=3.15.5
fastani>=1.34
mashtree>=1.4.6
sourmash-minimal>=4.8.6
sourmash_plugin_branchwater>=0.9.1
skani>=0.2.1
kwip>=0.2.0
# Python packages below
Loading