-
Notifications
You must be signed in to change notification settings - Fork 192
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 #545 from nf-core/dev
Version 1.9 release
- Loading branch information
Showing
46 changed files
with
1,250 additions
and
657 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,2 @@ | ||
[run] | ||
omit = nf_core/pipeline-template/* |
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,18 @@ | ||
## Before release | ||
|
||
1. Check issue milestones to see outstanding issues to resolve if possible or transfer to the milestones for the next release e.g. [`v1.9`](https://github.com/nf-core/tools/issues?q=is%3Aopen+is%3Aissue+milestone%3A1.9) | ||
2. Create a PR to `dev` to bump the version in `CHANGELOG.md` and `setup.py`. | ||
3. Make sure all CI tests are passing! | ||
4. Create a PR from `dev` to `master` | ||
5. Make sure all CI tests are passing again (additional tests are run on PRs to `master`) | ||
6. Request review (2 approvals required) | ||
7. Most importantly, pick an undeniably outstanding [name](http://www.codenamegenerator.com/) for the release where *Prefix* = *Metal* and *Dictionary* = *Animal*. | ||
8. Merge the PR into `master` | ||
9. Once CI tests on commit have passed, create a new release copying the `CHANGELOG` for that release into the description section. | ||
|
||
## After release | ||
|
||
1. Check the automated template synchronisation has been triggered properly. This should automatically open PRs directly to individual pipeline repos with the appropriate changes to update the pipeline template. | ||
2. Check that the automatic `PyPi` deployment has worked: [pypi.org/project/nf-core](https://pypi.org/project/nf-core/) | ||
3. Check `BioConda` has an automated PR to bump the version, and merge. eg. [bioconda/bioconda-recipes #20065](https://github.com/bioconda/bioconda-recipes/pull/20065) | ||
4. Create a tools PR to `dev` to bump back to the next development version in `CHANGELOG.md` and `setup.py` |
This file was deleted.
Oops, something went wrong.
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,49 @@ | ||
name: Python tests | ||
# This workflow is triggered on pushes and PRs to the repository. | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
PythonLint: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Check out source-code repository | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install python dependencies | ||
run: | | ||
python -m pip install --upgrade pip pytest pytest-datafiles pytest-cov mock jsonschema | ||
pip install . | ||
- name: Install Nextflow | ||
run: | | ||
mkdir /tmp/nextflow | ||
cd /tmp/nextflow | ||
wget -qO- get.nextflow.io | bash | ||
sudo ln -s /tmp/nextflow/nextflow /usr/local/bin/nextflow | ||
- name: Lint with flake8 | ||
run: | | ||
pip install flake8 | ||
# stop the build if there are Python syntax errors or undefined names | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
- name: Test with pytest | ||
run: python3 -m pytest --color=yes --cov-report=xml --cov-config=.github/.coveragerc --cov=nf_core | ||
|
||
- uses: codecov/codecov-action@v1 | ||
name: Upload code coverage report | ||
with: | ||
if: success() | ||
token: ${{ secrets.CODECOV_TOKEN }} |
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,31 @@ | ||
name: Create a pipeline and lint it | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
MakeTestWorkflow: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Check out source-code repository | ||
|
||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Install python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install . | ||
- name: Install Nextflow | ||
run: | | ||
mkdir /tmp/nextflow | ||
cd /tmp/nextflow | ||
wget -qO- get.nextflow.io | bash | ||
sudo ln -s /tmp/nextflow/nextflow /usr/local/bin/nextflow | ||
- name: Run nf-core tools | ||
run: | | ||
nf-core create -n testpipeline -d "This pipeline is for testing" -a "Testing McTestface" | ||
nf-core lint nf-core-testpipeline |
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,31 @@ | ||
name: Publish nf-core to PyPI | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build-n-publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Check out source-code repository | ||
|
||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Install python dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
pip install . | ||
- name: Build the distribution | ||
run: python setup.py sdist bdist_wheel | ||
|
||
- name: Publish dist to PyPI | ||
if: github.repository == 'nf-core/tools' | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.pypi_password }} |
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,18 @@ | ||
name: Lint Markdown | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
Markdown: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '10' | ||
|
||
- name: Install markdownlint | ||
run: npm install -g markdownlint-cli | ||
|
||
- name: Run Markdownlint | ||
run: markdownlint ${GITHUB_WORKSPACE} -c ${GITHUB_WORKSPACE}/.github/markdownlint.yml |
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,29 @@ | ||
name: Sync template | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
sync-all: | ||
name: Sync all pipelines | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Check out source-code repository | ||
|
||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Install python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install . | ||
- name: Run synchronisation | ||
if: github.repository == 'nf-core/tools' | ||
env: | ||
AUTH_TOKEN: ${{ secrets.nf_core_bot_auth_token }} | ||
run: nf-core sync --all --username nf-core-bot --auth-token $AUTH_TOKEN |
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,41 @@ | ||
name: nf-core/tools API docs | ||
on: | ||
push: | ||
branches: [master, dev] | ||
|
||
jobs: | ||
build-n-publish: | ||
name: Build and publish nf-core to PyPI | ||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- name: Check out source-code repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Install python dependencies | ||
run: | | ||
python -m pip install --upgrade pip Sphinx sphinxcontrib-napoleon | ||
pip install . | ||
- name: Build HTML docs | ||
run: make --directory ./docs/api html | ||
|
||
- name: Push docs to api-doc branch | ||
if: github.repository == 'nf-core/tools' | ||
run: | | ||
git checkout --orphan api-doc | ||
git rm -r --cache . | ||
git config user.email "core@nf-co.re" | ||
git config user.name "nf-core-bot" | ||
git add docs | ||
git commit --message "nf-core/tools docs build | ||
$GITHUB_REF - $GITHUB_SHA | ||
" | ||
git remote add nf-core https://github.com/nf-core/tools.git | ||
git push --force --set-upstream nf-core api-doc |
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
|
||
.coverage | ||
.pytest_cache | ||
docs/api/_build | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
|
This file was deleted.
Oops, something went wrong.
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.