Skip to content

Commit

Permalink
use venv
Browse files Browse the repository at this point in the history
  • Loading branch information
wsipak committed Oct 10, 2024
1 parent fcc789a commit c74c681
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/test-uarch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ jobs:
TEST_PATH=$RV_ROOT/verification/block
echo "TEST_PATH=$TEST_PATH" >> $GITHUB_ENV
pip3 install nox
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install nox
- name: Lint
shell: bash
run: |
source .venv/bin/activate
pushd ${TEST_PATH}
nox -s test_lint
popd
Expand Down Expand Up @@ -68,9 +71,7 @@ jobs:
shell: bash
run: |
python3 -m venv .venv
.venv/bin/python3 -m pip install tools/SiteSpawner
source .venv/bin/activate
echo "PATH=$PATH" >> $GITHUB_ENV
python3 -m pip install tools/SiteSpawner
- name: Setup Cache Metadata
Expand Down Expand Up @@ -133,11 +134,14 @@ jobs:
# Fix random generator seed
echo "RANDOM_SEED=1377424946" >> $GITHUB_ENV
pip3 install meson nox
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install meson nox
- name: Run ${{ matrix.test }}
shell: bash
run: |
source .venv/bin/activate
pushd ${TEST_PATH}
nox -s ${TEST_NAME}_verify
popd
Expand All @@ -146,6 +150,7 @@ jobs:
shell: bash
run: |
export PATH=/opt/verilator/bin:$PATH
source .venv/bin/activate
sis -d convert --dat-dir ${TEST_PATH}/${TEST_NAME}/
mkdir -p results
mv ${TEST_PATH}/${TEST_NAME}/*.info results/
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ jobs:
shell: bash
run: |
python3 -m venv .venv
.venv/bin/python3 -m pip install tools/SiteSpawner
source .venv/bin/activate
echo "PATH=$PATH" >> $GITHUB_ENV
python3 -m pip install tools/SiteSpawner
- name: Setup Cache Metadata
Expand Down Expand Up @@ -84,6 +82,7 @@ jobs:
- name: Run ${{ matrix.test }}
shell: bash
run: |
source .venv/bin/activate
pip3 install meson
pip3 install -r $RV_ROOT/verification/top/requirements.txt
PYTEST_STYLE_SRC_DIR=${{ github.workspace }}/.github/scripts/pytest/
Expand All @@ -97,6 +96,7 @@ jobs:
- name: Prepare pytest-html data
shell: bash
run: |
source .venv/bin/activate
pushd ${{ github.workspace }}
WEBPAGE_DIR=webpage_${{ matrix.test }}_${{ matrix.COVERAGE }}
mkdir -p $WEBPAGE_DIR
Expand All @@ -109,6 +109,7 @@ jobs:
- name: Prepare coverage data
shell: bash
run: |
source .venv/bin/activate
export PATH=/opt/verilator/bin:$PATH
sis -d convert --dat-dir ${TEST_PATH}
mkdir -p results
Expand Down

0 comments on commit c74c681

Please sign in to comment.