Skip to content

Commit 416ca4b

Browse files
viv-ethviv-ethXeratec
authored andcommitted
[DeeployTest] Change order of typeMatching entries (pulp-platform#68)
* [DeeployTest] Change order of typeMatching entries * [Tests] Add negative values to correctly match type * [ci] Add tests for manual type inference * [DeeployTest] Add manual type inference feature * [CHANGELOG] Update with manual type inference feature * [DeeployTest] Align command line args with network generator * [CHANGELOG] Add PR to list of PRs * [DeeployTest] Remove non-ASCII chars * [DeeployTest] Move to Numpy-style docs * [DeeployTest] Fix input/output indexing error by zipping input names and arrays * Fix CI Tests - Add GitHub tests - Remove outdated GitLab CI file - Add support for `--shouldFail` for network generation * Fix Changelog * Improve debugging and implement CodeRabbit suggestions * Implement PR feedback for Luka * Fix CI --------- Co-authored-by: viv-eth <[email protected]> Co-authored-by: Philip Wiese <[email protected]>
1 parent 27b915e commit 416ca4b

File tree

15 files changed

+315
-784
lines changed

15 files changed

+315
-784
lines changed

.github/workflows/CI.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,3 +1035,49 @@ jobs:
10351035
run: |
10361036
grep -Lr "SPDX-License-Identifier: Apache-2.0" --exclude-dir="toolchain" --exclude-dir="install" --exclude-dir=".git" . --exclude-dir="third_party" --exclude-dir="TEST_*" --exclude-dir="runtime" | grep ".*\.h$" || [[ $? == 1 ]]
10371037
shell: bash
1038+
1039+
generate-network-type-inference:
1040+
runs-on: ${{ needs.select-docker-image-and-runner.outputs.runner }}
1041+
needs: select-docker-image-and-runner
1042+
container:
1043+
image: ${{ needs.select-docker-image-and-runner.outputs.image }}
1044+
strategy:
1045+
fail-fast: false
1046+
matrix:
1047+
include:
1048+
- name: fail-input0
1049+
platform: Generic
1050+
test: testTypeInferenceDifferentTypes
1051+
type_map: A=int8_t B=int8_t C=int8_t
1052+
offset_map: A=0 B=0 C=0
1053+
shouldFail: true
1054+
- name: fail-input2
1055+
platform: Generic
1056+
test: testTypeInferenceDifferentTypes
1057+
type_map: A=int16_t B=int8_t C=int16_t
1058+
offset_map: A=0 B=0 C=0
1059+
shouldFail: true
1060+
- name: pass
1061+
platform: Generic
1062+
test: testTypeInferenceDifferentTypes
1063+
type_map: A=int16_t B=int8_t C=int32_t
1064+
offset_map: A=0 B=0 C=0
1065+
shouldFail: false
1066+
name: Test Type Inference (${{ matrix.name }})
1067+
steps:
1068+
- name: Checkout Repo
1069+
uses: actions/checkout@v4
1070+
with:
1071+
submodules: recursive
1072+
- name: Build Deeploy
1073+
run: pip install -e .
1074+
- name: Run Test
1075+
run: |
1076+
cd DeeployTest
1077+
python generateNetwork.py \
1078+
-p ${{ matrix.platform }} \
1079+
-t ./Tests/${{ matrix.test }} \
1080+
-v \
1081+
--input-type-map ${{ matrix.type_map }} \
1082+
--input-offset-map ${{ matrix.offset_map }} \
1083+
${{ matrix.shouldFail && '--shouldFail' || '' }}

0 commit comments

Comments
 (0)