Skip to content

Commit f4cce77

Browse files
viv-ethviv-ethXeratec
authored
[DeeployTest] Change order of typeMatching entries (#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 f3da691 commit f4cce77

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
@@ -1025,3 +1025,49 @@ jobs:
10251025
run: |
10261026
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 ]]
10271027
shell: bash
1028+
1029+
generate-network-type-inference:
1030+
runs-on: ${{ needs.select-docker-image-and-runner.outputs.runner }}
1031+
needs: select-docker-image-and-runner
1032+
container:
1033+
image: ${{ needs.select-docker-image-and-runner.outputs.image }}
1034+
strategy:
1035+
fail-fast: false
1036+
matrix:
1037+
include:
1038+
- name: fail-input0
1039+
platform: Generic
1040+
test: testTypeInferenceDifferentTypes
1041+
type_map: A=int8_t B=int8_t C=int8_t
1042+
offset_map: A=0 B=0 C=0
1043+
shouldFail: true
1044+
- name: fail-input2
1045+
platform: Generic
1046+
test: testTypeInferenceDifferentTypes
1047+
type_map: A=int16_t B=int8_t C=int16_t
1048+
offset_map: A=0 B=0 C=0
1049+
shouldFail: true
1050+
- name: pass
1051+
platform: Generic
1052+
test: testTypeInferenceDifferentTypes
1053+
type_map: A=int16_t B=int8_t C=int32_t
1054+
offset_map: A=0 B=0 C=0
1055+
shouldFail: false
1056+
name: Test Type Inference (${{ matrix.name }})
1057+
steps:
1058+
- name: Checkout Repo
1059+
uses: actions/checkout@v4
1060+
with:
1061+
submodules: recursive
1062+
- name: Build Deeploy
1063+
run: pip install -e .
1064+
- name: Run Test
1065+
run: |
1066+
cd DeeployTest
1067+
python generateNetwork.py \
1068+
-p ${{ matrix.platform }} \
1069+
-t ./Tests/${{ matrix.test }} \
1070+
-v \
1071+
--input-type-map ${{ matrix.type_map }} \
1072+
--input-offset-map ${{ matrix.offset_map }} \
1073+
${{ matrix.shouldFail && '--shouldFail' || '' }}

0 commit comments

Comments
 (0)