From 8ca2be3c085c3f356cc9e0e12ca7a548ec4ed54d Mon Sep 17 00:00:00 2001 From: Lekcyjna <309016@uwr.edu.pl> Date: Sat, 14 Oct 2023 13:10:13 +0200 Subject: [PATCH] Add back setup python step. --- .github/workflows/benchmark.yml | 18 ++++++++++++++++++ .github/workflows/main.yml | 9 +++++++++ docker/riscv-toolchain.Dockerfile | 4 ++-- 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 5c23b6873..31207d033 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -23,6 +23,15 @@ jobs: # https://github.com/actions/runner/issues/2033 chown -R $(id -u):$(id -g) $PWD + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + cache: 'pip' + cache-dependency-path: | + requirements.txt + requirements-dev.txt + - name: Install dependencies run: | python3 -m pip install --break-system-packages --upgrade pip @@ -84,6 +93,15 @@ jobs: # https://github.com/actions/runner/issues/2033 chown -R $(id -u):$(id -g) $PWD + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + cache: 'pip' + cache-dependency-path: | + requirements.txt + requirements-dev.txt + - name: Install dependencies run: | python3 -m pip install --break-system-packages --upgrade pip diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4a5124871..7cc22e5a4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,6 +41,15 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + cache: 'pip' + cache-dependency-path: | + requirements.txt + requirements-dev.txt + - name: Install dependencies run: | python3 -m pip install --break-system-packages --upgrade pip diff --git a/docker/riscv-toolchain.Dockerfile b/docker/riscv-toolchain.Dockerfile index d35c604b9..e64e2bce1 100644 --- a/docker/riscv-toolchain.Dockerfile +++ b/docker/riscv-toolchain.Dockerfile @@ -1,9 +1,9 @@ -FROM ubuntu:23.04 +FROM ubuntu:23.10 RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive \ apt-get install -y --no-install-recommends \ - autoconf automake autotools-dev curl python3 bc lsb-release \ + autoconf automake autotools-dev curl python3 python3-pip bc lsb-release \ libmpc-dev libmpfr-dev libgmp-dev gawk build-essential \ bison flex texinfo gperf libtool patchutils zlib1g-dev \ libexpat-dev ninja-build git ca-certificates python-is-python3 && \