9b527a044f
+ Added CI + Restructured Project + Improved API Improved creation speed by factor of \~2 + Improved execution speed by factor of \~15 - Removed multi processor since it doesn't work with the new setup and was not fast enough to matter.
24 lines
432 B
YAML
24 lines
432 B
YAML
image: "python:3.7"
|
|
|
|
before_script:
|
|
- python --version
|
|
- pip install coverage pytest pytest-cov pylint recordclass coverage coverage-badge
|
|
|
|
stages:
|
|
- Static Analysis
|
|
- Test
|
|
|
|
pylint:
|
|
stage: Static Analysis
|
|
script:
|
|
- pylint -d C0301 cellular_automaton/*.py
|
|
|
|
test:
|
|
stage: Test
|
|
script:
|
|
- pytest --cov=cellular_automaton tests/
|
|
- coverage report -m
|
|
- coverage-badge
|
|
|
|
coverage: '/TOTAL.+ ([0-9]{1,3}%)/'
|