This repository has been archived by the owner on Mar 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
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 #16 from czbiohub/pranathi-gh
add github actions
- Loading branch information
Showing
14 changed files
with
207 additions
and
123 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,11 @@ | ||
Many thanks to contributing to czbiohub/xicor! | ||
|
||
Please fill in the appropriate checklist below (delete whatever is not relevant). These are the most common things requested on pull requests (PRs). | ||
|
||
## PR checklist | ||
- [ ] This comment contains a description of changes (with reason) | ||
- [ ] If you've fixed a bug or added code that should be tested, add tests! | ||
- [ ] Ensure the test suite passes with [pytest](https://docs.pytest.org/en/latest/) . (command to run: `pytest` or `make coverage` if you want to see which lines don't have tests yet) | ||
- [ ] Make sure your code is linted and autoformatted using [black](https://github.com/psf/black) (`black . --check`). | ||
- [ ] Documentation in `usage.md` is updated | ||
- [ ] `README.md` is updated |
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,40 @@ | ||
name: Pytest | ||
# This workflow is triggered on pushes and PRs to the repository. | ||
# It runs the pipeline with the minimal test dataset to check that it completes without any syntax errors | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
env: | ||
NXF_VER: ${{ matrix.nxf_ver }} | ||
NXF_ANSI_LOG: false | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# Nextflow versions: check pipeline minimum and current latest | ||
python-version: ['3.5'] | ||
os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Miniconda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Dependencies with Python ${{ matrix.python-version }} | ||
shell: bash -l {0} | ||
run: | | ||
conda env create -n testenv --file environment.yml | ||
conda activate testenv | ||
pip install . | ||
- name: Run tests with coverage | ||
shell: bash -l {0} | ||
run: | | ||
conda activate testenv | ||
pip install -r requirements.txt | ||
make coverage | ||
- name: Send coverage to codecov.io | ||
shell: bash -l {0} | ||
run: | | ||
pip install codecov | ||
bash <(curl -s https://codecov.io/bash) |
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 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
# black code formatter github action: https://github.com/marketplace/actions/black-code-formatter | ||
|
||
name: Linting | ||
|
||
on: | ||
push: | ||
pull_request: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
check_formatting: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: black | ||
uses: psf/black@stable | ||
with: | ||
args: ". --check" |
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 @@ | ||
# This workflows will upload a Python Package using Twine when a release is created | ||
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries | ||
|
||
name: Upload Python Package to PyPI | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* |
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
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ scipy>=1.4.1 | |
pytest | ||
pytest-cov | ||
numpy | ||
flake8 | ||
black |
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
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
from pkg_resources import get_distribution, DistributionNotFound | ||
|
||
|
||
__version__ = '0.1.0dev0' | ||
__version__ = "0.1.0dev0" | ||
|
||
|
||
__title__ = 'xicor' | ||
__description__ = 'xi correlation for tied data' | ||
__uri__ = 'https://github.com/czbiohub/xicor' | ||
__doc__ = __description__ + ' <' + __uri__ + '>' | ||
__title__ = "xicor" | ||
__description__ = "xi correlation for tied data" | ||
__uri__ = "https://github.com/czbiohub/xicor" | ||
__doc__ = __description__ + " <" + __uri__ + ">" | ||
|
||
__author__ = 'Phoenix Logan' | ||
__email__ = '[email protected]' | ||
__author__ = "Phoenix Logan" | ||
__email__ = "[email protected]" | ||
|
||
__license__ = 'MIT License' | ||
__copyright__ = 'Copyright (c) 2020 Chan Zuckerberg Biohub' | ||
__license__ = "MIT License" | ||
__copyright__ = "Copyright (c) 2020 Chan Zuckerberg Biohub" | ||
|
||
|
||
try: | ||
|
Oops, something went wrong.