Skip to content

Commit

Permalink
Merge branch 'release/3.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhshah committed Sep 7, 2024
2 parents 8e98296 + c4219d6 commit 36693e9
Show file tree
Hide file tree
Showing 12 changed files with 82 additions and 46 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: "49 21 * * 6"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ python ]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"
12 changes: 6 additions & 6 deletions .github/workflows/test_nucleo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ jobs:
max-parallel: 1
matrix:
platform: [ubuntu-latest]
python-version: [3.6]
python-version: ['3.10']
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name : Set up NodeJS
run: |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
export NVM_DIR="$HOME/.nvm"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
nvm install node
- name: Setup Docker
- name: Setup Docker
uses: docker-practice/actions-setup-docker@master
with:
docker_channel: nightly
Expand All @@ -43,7 +43,7 @@ jobs:
env:
PLATFORM: ${{ matrix.platform }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand Down
8 changes: 4 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
path = subworkflows
url = https://github.com/msk-access/cwl_subworkflows.git
branch = develop
[submodule "bam_collapsing"]
path = bam_collapsing
url = https://github.com/msk-access/bam_collapsing.git
branch = develop
[submodule "uncollapsed_bam_generation"]
path = uncollapsed_bam_generation
url = https://github.com/msk-access/uncollapsed_bam_generation.git
branch = develop
[submodule "bam_collapsing"]
path = bam_collapsing
url = https://github.com/msk-access/bam_collapsing.git
branch = develop
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: python
python:
- 3.6
- 3.10
install: pip install -U tox-travis
script: tox
deploy:
Expand All @@ -14,4 +14,4 @@ deploy:
on:
tags: true
repo: msk-access/nucleo
python: 3.6
python: 3.10
2 changes: 1 addition & 1 deletion command_line_tools
16 changes: 4 additions & 12 deletions install_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,15 @@
# https://drive.google.com/file/d/1GtT8jsBGwRoQC-5wHh06r8RFkiFBuirp/view?usp=sharing

fileid=1GtT8jsBGwRoQC-5wHh06r8RFkiFBuirp

filename=test_nucleo.tar.gz
foldername=test_nucleo

# Skip if already have test data
[[ -f $filename ]] && exit 0
[[ -d $foldername ]] && exit 0

curl -c ./cookie -s -k -L "https://drive.google.com/uc?export=download&id=$fileid" > /dev/null

curl -k -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename}
gdown https://drive.google.com/uc?id=$fileid

# Suppress linux warnings for MacOS tar.gz files
if [[ "$OSTYPE" == "linux-gnu" ]]; then
tar --warning=no-unknown-keyword -xzvf $filename
tar --warning=no-unknown-keyword -xzvf $filename
elif [[ "$OSTYPE" == "darwin"* ]]; then
tar -xzvf $filename
tar -xzvf $filename
fi

rm $filename
rm $filename
19 changes: 10 additions & 9 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
toil[cwl]
pytz
bumpversion
flake8
tox
twine
pytest
pytest-runner
coloredlogs
toil[cwl]==5.10.0
pytz==2022.6
bumpversion==0.6.0
flake8==6.0.0
tox==3.27.1
twine==4.0.2
pytest==7.2.0
pytest-runner==6.0.0
coloredlogs==15.0.1
gdown
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 3.0.4
current_version = 3.1.0
commit = True
tag = True

Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
with open('README.md') as readme_file:
readme = readme_file.read()

requirements = ['toil[cwl]==5.5.0', ]
requirements = ['toil[cwl]==5.10.0', ]

setup_requirements = ['pytest-runner', ]

Expand All @@ -22,7 +22,7 @@
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.10',
],
description="Workflow that creates all the bam files for the MSK-ACCESS fastq file",
install_requires=requirements,
Expand All @@ -36,6 +36,6 @@
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/msk-access/nucleo',
version='3.0.4',
version='3.1.0',
zip_safe=False,
)
14 changes: 8 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[tox]
envlist = py{36}-{linux}, flake8
envlist = py{310}-{linux}, flake8

[travis]
python =
3.6: py36
3.10: py310

[testenv:flake8]
basepython = python
Expand All @@ -12,7 +12,7 @@ commands = flake8 nucleo

[gh-actions]
python =
3.6: py36
3.10: py310

[gh-actions:env]
PLATFORM =
Expand All @@ -32,14 +32,16 @@ deps =

passenv = {gh-actions,pytest}

whitelist_externals =
allowlist_externals =
wget
chmod
tar
goodls
sh
bash
tar

commands_pre = ./install_data.sh
commands_pre = bash ./install_data.sh

commands =
py.test --capture=sys --basetemp={envtmpdir} tests

2 changes: 1 addition & 1 deletion uncollapsed_bam_generation

0 comments on commit 36693e9

Please sign in to comment.