Skip to content

Commit

Permalink
[#48058] GH Actions: Changed base image to debian:bullseye
Browse files Browse the repository at this point in the history
Signed-off-by: Grzegorz Latosinski <[email protected]>
  • Loading branch information
glatosinski committed Mar 4, 2024
1 parent 86e39e1 commit 7011bf5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,28 @@ on:
branches: [main]

jobs:
readme-tests:
cancel-previous-job:
runs-on: ubuntu-latest
steps:
- name: Cancel previous
uses: styfle/[email protected]
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
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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`:
Expand Down

0 comments on commit 7011bf5

Please sign in to comment.