Clean-up CI setup
This commit is contained in:
parent
3a8388e24f
commit
dda2f1d779
5
.github/workflows/pythonapp.yml
vendored
5
.github/workflows/pythonapp.yml
vendored
@ -23,10 +23,7 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install .
|
pip install .[all]
|
||||||
- name: Install extras
|
|
||||||
run: |
|
|
||||||
pip install -r requirements.txt
|
|
||||||
- name: Lint with flake8
|
- name: Lint with flake8
|
||||||
run: |
|
run: |
|
||||||
pip install flake8
|
pip install flake8
|
||||||
|
@ -5,10 +5,8 @@ python: 3.8
|
|||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- "./tests/artifacts"
|
- "./tests/artifacts"
|
||||||
# - "$HOME/.prototorch/datasets"
|
|
||||||
install:
|
install:
|
||||||
- pip install . --progress-bar off
|
- pip install .[all] --progress-bar off
|
||||||
- pip install -r requirements.txt
|
|
||||||
|
|
||||||
# Generate code coverage report
|
# Generate code coverage report
|
||||||
script:
|
script:
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
matplotlib==3.1.2
|
|
||||||
pytest==5.3.4
|
|
||||||
requests==2.22.0
|
|
||||||
codecov==2.0.22
|
|
||||||
tqdm==4.44.1
|
|
14
setup.py
14
setup.py
@ -21,23 +21,24 @@ INSTALL_REQUIRES = [
|
|||||||
"torchvision>=0.5.0",
|
"torchvision>=0.5.0",
|
||||||
"numpy>=1.9.1",
|
"numpy>=1.9.1",
|
||||||
]
|
]
|
||||||
|
DATASETS = [
|
||||||
|
"requests",
|
||||||
|
"tqdm",
|
||||||
|
]
|
||||||
|
DEV = ["bumpversion"]
|
||||||
DOCS = [
|
DOCS = [
|
||||||
"recommonmark",
|
"recommonmark",
|
||||||
"sphinx",
|
"sphinx",
|
||||||
"sphinx_rtd_theme",
|
"sphinx_rtd_theme",
|
||||||
"sphinxcontrib-katex",
|
"sphinxcontrib-katex",
|
||||||
]
|
]
|
||||||
DATASETS = [
|
|
||||||
"requests",
|
|
||||||
"tqdm",
|
|
||||||
]
|
|
||||||
EXAMPLES = [
|
EXAMPLES = [
|
||||||
"sklearn",
|
"sklearn",
|
||||||
"matplotlib",
|
"matplotlib",
|
||||||
"torchinfo",
|
"torchinfo",
|
||||||
]
|
]
|
||||||
TESTS = ["pytest"]
|
TESTS = ["codecov", "pytest"]
|
||||||
ALL = DOCS + DATASETS + EXAMPLES + TESTS
|
ALL = DATASETS + DEV + DOCS + EXAMPLES + TESTS
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="prototorch",
|
name="prototorch",
|
||||||
@ -71,6 +72,7 @@ setup(
|
|||||||
"Programming Language :: Python :: 3.6",
|
"Programming Language :: Python :: 3.6",
|
||||||
"Programming Language :: Python :: 3.7",
|
"Programming Language :: Python :: 3.7",
|
||||||
"Programming Language :: Python :: 3.8",
|
"Programming Language :: Python :: 3.8",
|
||||||
|
"Programming Language :: Python :: 3.9",
|
||||||
"Operating System :: OS Independent",
|
"Operating System :: OS Independent",
|
||||||
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
||||||
"Topic :: Software Development :: Libraries",
|
"Topic :: Software Development :: Libraries",
|
||||||
|
15
tox.ini
15
tox.ini
@ -1,15 +0,0 @@
|
|||||||
# tox (https://tox.readthedocs.io/) is a tool for running tests
|
|
||||||
# in multiple virtualenvs. This configuration file will run the
|
|
||||||
# test suite on all supported python versions. To use it, "pip install tox"
|
|
||||||
# and then run "tox" from this directory.
|
|
||||||
|
|
||||||
[tox]
|
|
||||||
envlist = py36,py37,py38
|
|
||||||
|
|
||||||
[testenv]
|
|
||||||
deps =
|
|
||||||
pytest
|
|
||||||
coverage
|
|
||||||
commands =
|
|
||||||
pip install -e .
|
|
||||||
coverage run -m pytest
|
|
Loading…
Reference in New Issue
Block a user