From 7011bf525121b501f1619ec168b3548515556ae3 Mon Sep 17 00:00:00 2001 From: Grzegorz Latosinski Date: Sat, 2 Mar 2024 22:08:54 +0100 Subject: [PATCH] [#48058] GH Actions: Changed base image to debian:bullseye Signed-off-by: Grzegorz Latosinski --- .github/workflows/ci.yml | 15 ++++++++++----- README.md | 7 +++++-- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 78d79e7..dd400f2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,23 +7,28 @@ on: branches: [main] jobs: - readme-tests: + cancel-previous-job: runs-on: ubuntu-latest steps: - name: Cancel previous uses: styfle/cancel-workflow-action@0.11.0 with: access_token: ${{ github.token }} + readme-tests: + runs-on: ubuntu-latest + container: + image: debian:bullseye + steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: 'recursive' lfs: true - name: Install tuttest dependencies run: | - sudo apt-get update -qqy - sudo apt-get install -qqy --no-install-recommends python3 python3-pip git colorized-logs - sudo pip3 install git+https://github.com/antmicro/tuttest.git + apt-get update -qqy + apt-get install -qqy --no-install-recommends python3 python3-pip git-lfs colorized-logs sudo + pip3 install git+https://github.com/antmicro/tuttest.git - name: Run README.md snippets run: | ./.github/scripts/readme-tests.sh diff --git a/README.md b/README.md index 37e9985..fa75205 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,9 @@ In Debian-based distros they can be installed with: ```bash sudo apt-get update sudo apt-get install -qqy --no-install-recommends \ + ca-certificates \ cmake \ + curl \ g++ \ git \ git-lfs \ @@ -129,13 +131,14 @@ To create a virtual environment run the following commands: ```bash python3 -m venv venv # create venv source ./venv/bin/activate # activate it -python3 -m pip install -r requirements.txt # install dependencies +python3 -m pip install --upgrade pip # install dependencies +python3 -m pip install -r requirements.txt ``` To install additional python packages required to run Kenning compilation, inference and report rendering, run the following command: ```bash -python3 -m pip install third-party/kenning[tensorflow,reports,uart,renode,object_detection] +python3 -m pip install third-party/kenning[tensorflow,reports,uart,renode] ``` For installing IREE Python modules for compiling models in Kenning, either follow [Building IREE from source](https://openxla.github.io/iree/building-from-source/#reference-pages) instructions to build Python bindings from `third-party/iree-rv32-springbok/third_party/iree/` directory, or install the available Python modules using `pip`: