Skip to content

lint code

lint code #4

Workflow file for this run

##
## Copyright (c) 2022 TUM Department of Electrical and Computer Engineering.
##
## This file is part of TFLitePack.
## See https://github.com/tum-ei-eda/tflite-pack.git for further info.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
##
# GitHub CI pipeline
name: CI
on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
dest: ["", ".", "tflp", "tflp/", "./tflp", "/tmp/tflp"]
model: ["resnet", "toycar"]
args: ["--noop --count-layers", "--out out.tflite --keep 1,2,3 --verbose"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# - name: Initialize Virtualenv
# run: |
# python -m pip install --upgrade pip virtualenv
# python -m venv .venv
- name: Install dependencies
run: |
# source .venv/bin/activate
pip3 install -r requirements.txt
- name: Install
run: |
./install.sh ${{ matrix.dest }}
- name: Download model
run: |
wget https://github.com/tum-ei-eda/mlonmcu-models/raw/main/${{ matrix.model }}/${{ matrix.model }}.tflite
- name: Run
run: |
test -z ${{ matrix.dest }} || cd ${{ matrix.dest }}
./run.sh ${{ github.workspace }}/${{ matrix.model }}.tflite ${{ matrix.args }}