Skip to content

Commit

Permalink
Lava 0.1.0 (#4)
Browse files Browse the repository at this point in the history
* Add lava-0.1.0 code
  • Loading branch information
mgkwill committed Oct 27, 2021
1 parent 8727ca5 commit 08f6b4f
Show file tree
Hide file tree
Showing 126 changed files with 12,294 additions and 150 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.npy* filter=lfs diff=lfs merge=lfs -text
69 changes: 69 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Run CI
on: [push, pull_request]

jobs:
lint:
name: Lint with flake8
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pybuilder
- name: Run pybuilder w/o unit tests
run: |
pyb analyze
security-lint:
name: Security Lint with bandit
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pybuilder
- name: Run pybuilder to lint security w/ bandit
run: |
pyb bandit
unit-tests:
name: Run unit tests
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run unit tests
run: |
python -m unittest discover -s tests -p "test_*.py" -vvv
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ instance/

# Sphinx documentation
docs/_build/
_build

# PyBuilder
target/
Expand Down Expand Up @@ -127,3 +128,13 @@ dmypy.json

# Pyre type checker
.pyre/

# MISC
*.a
*.o
*.pyc
*.pyo
*.swp
.idea/
.vscode/
.history/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "docs"]
path = docs
url = https://github.com/lava-nc/lava-docs.git
Loading

0 comments on commit 08f6b4f

Please sign in to comment.