-
Notifications
You must be signed in to change notification settings - Fork 42
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 #431 from neurodata/staging
v 0.0.4
- Loading branch information
Showing
50 changed files
with
9,084 additions
and
975 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,133 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
codecov: codecov/[email protected] | ||
|
||
jobs: | ||
build: | ||
parameters: | ||
version: | ||
type: string | ||
docker: | ||
- image: cimg/python:<< parameters.version >> | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: v1-<< parameters.version >>-min-dependency-cache-{{ checksum "dev-requirements.txt" }} | ||
- run: | ||
name: install python dependencies | ||
command: | | ||
python3 -m venv venv | ||
. venv/bin/activate | ||
pip install --upgrade pip | ||
pip install -r dev-requirements.txt | ||
- save_cache: | ||
key: v1-<< parameters.version >>-min-dependency-cache-{{ checksum "dev-requirements.txt" }} | ||
paths: | ||
- "venv" | ||
- run: | ||
name: test if package installs | ||
command: | | ||
. venv/bin/activate | ||
python3 setup.py install | ||
test-module: | ||
parameters: | ||
module: | ||
type: string | ||
docker: | ||
- image: cimg/python:3.8 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: v1-3.8-dependency-cache-{{ checksum "dev-requirements.txt" }} | ||
- run: | ||
name: install python dependencies | ||
command: | | ||
python3 -m venv venv | ||
. venv/bin/activate | ||
pip install -r dev-requirements.txt | ||
pip install -e . | ||
- save_cache: | ||
key: v1-3.8-dependency-cache-{{ checksum "dev-requirements.txt" }} | ||
paths: | ||
- "venv" | ||
- run: | ||
name: run code linting | ||
command: | | ||
. venv/bin/activate | ||
black --check --diff ./<< parameters.module >> | ||
- run: | ||
name: run tests and coverage | ||
command: | | ||
. venv/bin/activate | ||
pytest --junitxml=test-reports/junit.xml --cov-report=xml --cov=./<< parameters.module >> ./<< parameters.module >> | ||
- store_test_results: | ||
path: test-reports | ||
- store_artifacts: | ||
path: test-reports | ||
- codecov/upload: | ||
file: "coverage.xml" | ||
deploy: | ||
docker: | ||
- image: cimg/python:3.8 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: v1-3.8-dependency-cache-{{ checksum "dev-requirements.txt" }} | ||
- run: | ||
name: install python dependencies | ||
command: | | ||
python3 -m venv venv | ||
. venv/bin/activate | ||
pip install -r dev-requirements.txt | ||
pip install -e . | ||
- save_cache: | ||
key: v1-3.8-dependency-cache-{{ checksum "dev-requirements.txt" }} | ||
paths: | ||
- "venv" | ||
- run: | ||
name: verify git tag vs. version | ||
command: | | ||
python3 -m venv venv | ||
. venv/bin/activate | ||
python setup.py verify | ||
- run: | ||
name: init .pypirc | ||
command: | | ||
echo -e "[pypi]" >> ~/.pypirc | ||
echo -e "username = $PYPI_USERNAME" >> ~/.pypirc | ||
echo -e "password = $PYPI_PASSWORD" >> ~/.pypirc | ||
- run: | ||
name: create packages | ||
command: | | ||
python setup.py sdist | ||
- run: | ||
name: upload to pypi | ||
command: | | ||
. venv/bin/activate | ||
twine upload dist/* | ||
workflows: | ||
build-test-deploy: | ||
jobs: | ||
- build: | ||
name: "v3.6" | ||
version: "3.6" | ||
- build: | ||
name: "v3.7" | ||
version: "3.7" | ||
- build: | ||
name: "v3.8" | ||
version: "3.8" | ||
- test-module: | ||
name: "proglearn" | ||
module: "proglearn" | ||
requires: | ||
- "v3.8" | ||
- deploy: | ||
requires: | ||
- "proglearn" | ||
filters: | ||
tags: | ||
only: /[0-9]+(\.[0-9]+)*/ | ||
branches: | ||
ignore: /.*/ |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.