Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions .github/workflows/base.yml.template
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
name: &{name}
name: %{name}

on:
push:
branches: [ master, dev ]
pull_request:
types:
- review_requested
issue_comment:
types: [created, edited, deleted]


jobs:
build:
runs-on: ${{ matrix.platform }}
strategy:
&{strategy}
%{strategy}
matrix:
&{matrix}
&{exclude}
%{matrix}
%{exclude}

if: ${{ !github.event.pull_request.draft }}
if: contains(github.event.comment.body, '/run_tests')
steps:

- name: Checkout repo
Expand All @@ -41,4 +39,4 @@ jobs:
run: brew install libomp
if: startsWith(runner.os, 'macOS') == true

&{steps}
%{steps}
10 changes: 5 additions & 5 deletions .github/workflows/base_reduced.yml.template
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: &{name}
name: %{name}

on:
pull_request:
Expand All @@ -13,10 +13,10 @@ jobs:
build:
runs-on: ${{ matrix.platform }}
strategy:
&{strategy}
%{strategy}
matrix:
&{matrix}
&{exclude}
%{matrix}
%{exclude}

if: ${{ !github.event.pull_request.draft }}
steps:
Expand All @@ -43,4 +43,4 @@ jobs:
run: brew install libomp
if: startsWith(runner.os, 'macOS') == true

&{steps}
%{steps}
10 changes: 4 additions & 6 deletions .github/workflows/develop_install.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Test develop install

on:
push:
branches: [ master, dev ]
pull_request:
types:
- review_requested
issue_comment:
types: [created, edited, deleted]


jobs:
build:
Expand All @@ -22,7 +20,7 @@ jobs:



if: ${{ !github.event.pull_request.draft }}
if: contains(github.event.comment.body, '/run_tests')
steps:

- name: Checkout repo
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/end_to_end.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Test End-to-end flows

on:
push:
branches: [ master, dev ]
pull_request:
types:
- review_requested
issue_comment:
types: [created, edited, deleted]


jobs:
build:
Expand All @@ -25,7 +23,7 @@ jobs:



if: ${{ !github.event.pull_request.draft }}
if: contains(github.event.comment.body, '/run_tests')
steps:

- name: Checkout repo
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/examples_pytest.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Examples Pytest

on:
push:
branches: [ master, dev ]
pull_request:
types:
- review_requested
issue_comment:
types: [created, edited, deleted]


jobs:
build:
Expand Down Expand Up @@ -39,7 +37,7 @@ jobs:



if: ${{ !github.event.pull_request.draft }}
if: contains(github.event.comment.body, '/run_tests')
steps:

- name: Checkout repo
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/finn_integration.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Test Brevitas-FINN integration

on:
push:
branches: [ master, dev ]
pull_request:
types:
- review_requested
issue_comment:
types: [created, edited, deleted]


jobs:
build:
Expand All @@ -22,7 +20,7 @@ jobs:



if: ${{ !github.event.pull_request.draft }}
if: contains(github.event.comment.body, '/run_tests')
steps:

- name: Checkout repo
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/notebook.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Test Notebook execution

on:
push:
branches: [ master, dev ]
pull_request:
types:
- review_requested
issue_comment:
types: [created, edited, deleted]


jobs:
build:
Expand All @@ -31,7 +29,7 @@ jobs:



if: ${{ !github.event.pull_request.draft }}
if: contains(github.event.comment.body, '/run_tests')
steps:

- name: Checkout repo
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/ort_integration.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Test Brevitas-ORT integration

on:
push:
branches: [ master, dev ]
pull_request:
types:
- review_requested
issue_comment:
types: [created, edited, deleted]


jobs:
build:
Expand All @@ -22,7 +20,7 @@ jobs:



if: ${{ !github.event.pull_request.draft }}
if: contains(github.event.comment.body, '/run_tests')
steps:

- name: Checkout repo
Expand Down
80 changes: 15 additions & 65 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -1,69 +1,19 @@
name: Pytest

on:
push:
branches: [ master, dev ]
pull_request:
types:
- review_requested

types: [opened]
issue_comment:
types: [created]

jobs:
build:
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false


matrix:
python_version: ['3.7', '3.8']
pytorch_version: ['1.5.1', '1.6.0', '1.7.1', '1.8.1', '1.9.1', '1.10.1', '1.11.0', '1.12.1', '1.13.0']
platform: ['windows-latest', 'ubuntu-latest', 'macos-latest']
jit_status: ['jit_disabled', 'jit_enabled']


exclude:
- pytorch_version: '1.5.1'
jit_status: 'jit_enabled'

- pytorch_version: '1.6.0'
jit_status: 'jit_enabled'

- pytorch_version: '1.7.1'
jit_status: 'jit_enabled'

- pytorch_version: '1.8.1'
jit_status: 'jit_enabled'

- pytorch_version: '1.9.1'
jit_status: 'jit_enabled'



if: ${{ !github.event.pull_request.draft }}
deploy:
runs-on: ubuntu-latest
steps:

- name: Checkout repo
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python_version }}

- name: Install Nox dependencies
shell: bash
run: pip install -r requirements/requirements-nox.txt

- name: Install libsndfile and libgomp1 on Ubuntu
shell: bash
run: sudo apt-get install -y libsndfile-dev libgomp1
if: startsWith(runner.os, 'Linux') == true

- name: Install libomp on macOS
shell: bash
run: brew install libomp
if: startsWith(runner.os, 'macOS') == true

- name: Run Nox session for brevitas pytest
shell: bash
run: nox -v -s tests_brevitas_cpu-${{ matrix.python_version }}\(${{ matrix.jit_status }}\,\ pytorch_${{ matrix.pytorch_version }}\)
- uses: khan/[email protected]
id: check
with:
trigger: '/run_tests'
reaction: rocket
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
- run: 'echo Found it!'
if: steps.check.outputs.triggered == 'true'
2 changes: 1 addition & 1 deletion .github/workflows/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


class CustomTemplate(Template):
delimiter = '&'
delimiter = '%'


class Action:
Expand Down