-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Lava 0.4.0 Signed-off-by: Marcus G K Williams <Marcus G K Williams [email protected]> Co-authored-by: Joyesh Mishra <[email protected]> Co-authored-by: Yashwardhan Singh <[email protected]> Co-authored-by: GaboFGuerra <[email protected]> Co-authored-by: Mathis Richter <[email protected]> Co-authored-by: PhilippPlank <[email protected]> Co-authored-by: bamsumit <[email protected]> Co-authored-by: Danielle Rager <[email protected]> Co-authored-by: Risbud, Sumedh <[email protected]> Co-authored-by: Philipp Stratmann <[email protected]> Co-authored-by: weidel-p <[email protected]> Co-authored-by: Andreas Wild <[email protected]> Co-authored-by: Marcus G K Williams <Marcus G K Williams [email protected]>
- Loading branch information
1 parent
fb35fbf
commit 19132bb
Showing
148 changed files
with
10,729 additions
and
5,842 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 |
---|---|---|
@@ -1,143 +1,146 @@ | ||
name: Run CI | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
name: Lint Code | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
lfs: true | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache | ||
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-01-${{ hashFiles('**/poetry.lock') }} | ||
|
||
- name: Install dependencies | ||
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
run: poetry install --no-interaction --no-root | ||
|
||
- name: Install Lava | ||
run: poetry install --no-interaction | ||
|
||
- name: Run flakeheaven (flake8) | ||
if: runner.os == 'Linux' || runner.os == 'macOS' | ||
run: | | ||
source $VENV | ||
flakeheaven lint src/lava tests/ | ||
- name: Run flakeheaven (flake8) | ||
if: runner.os == 'Windows' | ||
run: | | ||
.venv\Scripts\activate.ps1 | ||
flakeheaven lint src/lava tests/ | ||
security-lint: | ||
name: Security Lint Code | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
lfs: true | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache | ||
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-01-${{ hashFiles('**/poetry.lock') }} | ||
|
||
- name: Install dependencies | ||
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
run: poetry install --no-interaction --no-root | ||
|
||
- name: Install Lava | ||
run: poetry install --no-interaction | ||
|
||
- name: Run bandit | ||
uses: tj-actions/[email protected] | ||
with: | ||
targets: | | ||
src/lava/. | ||
options: "-r --format custom --msg-template '{abspath}:{line}: {test_id}[bandit]: {severity}: {msg}'" | ||
|
||
unit-tests: | ||
name: Unit Test Code + Coverage | ||
runs-on: ${{ matrix.operating-system }} | ||
strategy: | ||
matrix: | ||
operating-system: [ubuntu-latest, windows-latest, macos-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
lfs: true | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache | ||
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-01-${{ hashFiles('**/poetry.lock') }} | ||
|
||
- name: Install dependencies | ||
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
run: poetry install --no-interaction --no-root | ||
|
||
- name: Install Lava | ||
run: poetry install --no-interaction | ||
|
||
- name: Run unit tests | ||
if: runner.os == 'Linux' || runner.os == 'macOS' | ||
run: | | ||
git lfs fetch | ||
git lfs pull | ||
source $VENV | ||
python3 -m pip install ipykernel | ||
pytest | ||
- name: Run unit tests | ||
if: runner.os == 'Windows' | ||
run: | | ||
.venv\Scripts\activate.ps1 | ||
python3 -m pip install ipykernel | ||
pytest | ||
name: Run CI | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
name: Lint Code | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
lfs: true | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
virtualenvs-path: .venv | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache | ||
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-01-${{ hashFiles('**/poetry.lock') }} | ||
|
||
- name: Install dependencies | ||
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
run: poetry install --no-interaction --no-root | ||
|
||
- name: Install Lava | ||
run: poetry install --no-interaction | ||
|
||
- name: Run flakeheaven (flake8) | ||
if: runner.os == 'Linux' || runner.os == 'macOS' | ||
run: | | ||
source $VENV | ||
flakeheaven lint src/lava tests/ | ||
- name: Run flakeheaven (flake8) | ||
if: runner.os == 'Windows' | ||
run: | | ||
.venv\Scripts\activate.ps1 | ||
flakeheaven lint src/lava tests/ | ||
security-lint: | ||
name: Security Lint Code | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
lfs: true | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
virtualenvs-path: .venv | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache | ||
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-01-${{ hashFiles('**/poetry.lock') }} | ||
|
||
- name: Install dependencies | ||
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
run: poetry install --no-interaction --no-root | ||
|
||
- name: Install Lava | ||
run: poetry install --no-interaction | ||
|
||
- name: Run bandit | ||
uses: tj-actions/[email protected] | ||
with: | ||
targets: | | ||
src/lava/. | ||
options: "-r --format custom --msg-template '{abspath}:{line}: {test_id}[bandit]: {severity}: {msg}'" | ||
|
||
unit-tests: | ||
name: Unit Test Code + Coverage | ||
runs-on: ${{ matrix.operating-system }} | ||
strategy: | ||
matrix: | ||
operating-system: [ubuntu-latest, windows-latest, macos-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
lfs: true | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
virtualenvs-path: .venv | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache | ||
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-01-${{ hashFiles('**/poetry.lock') }} | ||
|
||
- name: Install dependencies | ||
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
run: poetry install --no-interaction --no-root | ||
|
||
- name: Install Lava | ||
run: poetry install --no-interaction | ||
|
||
- name: Run unit tests | ||
if: runner.os == 'Linux' || runner.os == 'macOS' | ||
run: | | ||
git lfs fetch | ||
git lfs pull | ||
source $VENV | ||
python3 -m pip install ipykernel | ||
pytest | ||
- name: Run unit tests | ||
if: runner.os == 'Windows' | ||
run: | | ||
.venv\Scripts\activate.ps1 | ||
python3 -m pip install ipykernel | ||
pytest |
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 |
---|---|---|
|
@@ -3,6 +3,9 @@ __pycache__/ | |
*.py[cod] | ||
*$py.class | ||
|
||
# Lava PreDefs | ||
predefs_*.h | ||
|
||
# C extensions | ||
*.so | ||
|
||
|
Oops, something went wrong.