Add workflow for testing gds_generation #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Basic Installation, gds setup | |
on: [push, pull_request] | |
jobs: | |
Install-Dependencies_Data-Prep_CPU-Training_CPU-Inference: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- run: echo "${{ github.repository }} repository has been cloned to the runner." | |
- run: echo "Currently on ${{ github.ref }} branch" | |
- name: ls of directory | |
run: | | |
ls ${{ github.workspace }} | |
# Caching pip dependencies | |
- name: Cache pip dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements_cpu.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install dependencies | |
run: | | |
source ./dependencies.sh | |
source ~/miniconda3/bin/activate | |
cd openfasoc/generators/gdsfactory-gen | |
python3 -m pip install --upgrade pip | |
python3 -m pip install -r requirements.txt | |
- name: Run gen_opamp | |
run: | | |
ls | |
python3 sky130_nist_tapeout.py gen_opamp -output_gds test.gds | |
ls | |
- name: Run test | |
run: | | |
ls | |
python3 sky130_nist_tapeout.py test -output_dir test_output_dir | |
ls | |