Skip to content

[SC-BOT] Update openroad #334

[SC-BOT] Update openroad

[SC-BOT] Update openroad #334

Workflow file for this run

name: Conda CI Tests
on:
# Runs on pushes to test/ branches and main
push:
branches:
- 'main'
- 'test/**'
# Run if anything changes related to tool setup
paths: 'setup/**'
# Runs on all PRs
pull_request:
# Manual Dispatch
workflow_dispatch:
jobs:
test-basic-tools:
name: Test basic tools
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
defaults:
run:
shell: bash -el {0}
steps:
- name: Checkout siliconcompiler
uses: actions/checkout@v4
- name: Setup conda env
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: sc_env
environment-file: setup/conda/environment.yml
- name: Tool version check
run : |
conda activate sc_env
klayout -v
openroad -version
surelog --version
yosys --version
- name: Set up Python ${{ matrix.python-version }}
id: setup-python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
allow-prereleases: true
- name: Run tests
run : |
conda activate sc_env
echo "setup-python action provides path ${{ steps.setup-python.outputs.python-path }}"
${{ steps.setup-python.outputs.python-path }} -m venv clean_env
source clean_env/bin/activate
which python3
which python
python --version
cd $GITHUB_WORKSPACE
python -m pip install --upgrade pip
python -m pip install .[test]
pytest -n auto -k "not sim" tests/tools/test_openroad.py tests/tools/test_klayout.py tests/tools/test_surelog.py tests/tools/test_yosys.py tests/core/test_tool_tasks.py tests/flows/test_show.py tests/apps/test_sc_show.py tests/examples/test_heartbeat.py