Skip to content

Commit

Permalink
Merge pull request #431 from neurodata/staging
Browse files Browse the repository at this point in the history
v 0.0.4
  • Loading branch information
jdey4 authored Feb 4, 2021
2 parents 671ff6a + 2148ff3 commit 9f799b4
Show file tree
Hide file tree
Showing 50 changed files with 9,084 additions and 975 deletions.
133 changes: 133 additions & 0 deletions .circleci/config.yml
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: /.*/
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# ProgLearn

[![Build Status](https://travis-ci.org/neurodata/ProgLearn.svg?branch=main)](https://travis-ci.org/neurodata/ProgLearn)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4276573.svg)](https://doi.org/10.5281/zenodo.4276573)
[![Build Status](https://circleci.com/gh/neurodata/ProgLearn/tree/main.svg?style=shield&circle-token=:circle-token)](https://app.circleci.com/pipelines/github/neurodata/ProgLearn)
[![Codecov](https://codecov.io/gh/neurodata/ProgLearn/branches/main/graph/badge.svg)](https://codecov.io/gh/neurodata/ProgLearn)
[![PyPI version](https://img.shields.io/pypi/v/proglearn.svg)](https://pypi.org/project/proglearn/)
[![arXiv](https://img.shields.io/badge/arXiv-2004.12908-red.svg?style=flat)](https://arxiv.org/abs/2004.12908)
Expand Down
10 changes: 0 additions & 10 deletions benchmarks/plot_adversary_recruit/plotting.py

This file was deleted.

189 changes: 0 additions & 189 deletions benchmarks/rotation/rotated_cifar.py

This file was deleted.

Loading

0 comments on commit 9f799b4

Please sign in to comment.