Trinity-SciData / chips /openroad_flow_scripts /.github /workflows /github-actions-cron-util-test.yml
STAR-future's picture
add chips/openroad_flow_scripts
d664931 verified
Raw History Blame Contribute Delete
1.53 kB
name: Test Util Scripts
on:
schedule:
- cron: "0 8 * * SUN"
push:
paths:
- 'flow/util/*.py'
- 'flow/test/test_*.py'
- 'flow/platforms/*/drc/*.py'
- 'flow/platforms/*/lvs/*.py'
- 'etc/requirements-common_lock.txt'
- '.github/workflows/github-actions-cron-util-test.yml'
pull_request:
paths:
- 'flow/util/*.py'
- 'flow/test/test_*.py'
- 'flow/platforms/*/drc/*.py'
- 'flow/platforms/*/lvs/*.py'
- 'etc/requirements-common_lock.txt'
- '.github/workflows/github-actions-cron-util-test.yml'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
jobs:
testUtilScripts:
strategy:
fail-fast: false
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted-ubuntu-26.04' || 'ubuntu-26.04' }}
steps:
- name: Check out repository code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
submodules: recursive
- name: Install Python packages
run: |
python3 -m venv venv
venv/bin/python3 -m pip install --no-cache-dir --upgrade --require-hashes -r etc/requirements-pip_lock.txt
venv/bin/python3 -m pip install --no-cache-dir -r etc/requirements-common_lock.txt
- name: Run Tests
run: |
source venv/bin/activate
cd flow/test
for file in *.py; do
python3 "$file"
done