Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding GitHub Actions for DRC testing #11

Merged
merged 1 commit into from
Aug 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .github/workflows/drc_gf180mcu_fd_io_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Copyright 2022 GlobalFoundries PDK Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# This is a Github Actions for testing DRC rule deck of GF180MCU
name: Regression testing the DRC rules against gf180mcu_fd_io

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events
push:
pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Defines environment variables
env:
PDK_ROOT: $GITHUB_WORKSPACE/rules/klayout
PDK: drc

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "gf180mcu_fd_io_DRC_testing"
gf180mcu_fd_io_DRC_testing:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Gets python version with list of needed requirements
- uses: actions/setup-python@v3
with:
python-version: '3.9'
cache: 'pip'
cache-dependency-path: '**/requirements.test.txt'

# Installs requirements
- run: pip install -r ./rules/klayout/requirements.test.txt

# Installs Klayout verison 0.27.8
- name: Installing Klayout 0.27.8
run: |
wget https://www.klayout.org/downloads/Ubuntu-20/klayout_0.27.8-1_amd64.deb
sudo apt-get install qt5-default qttools5-dev libqt5xmlpatterns5-dev qtmultimedia5-dev libqt5multimediawidgets5 libqt5svg5-dev
sudo dpkg -i ./klayout_0.27.8-1_amd64.deb
sudo apt-get install -f -y

# Runs a set of commands using the runners shell
- name: Testing DRC for gf180mcu_fd_io
run: |
cd ./rules/klayout/drc/testing
make test-DRC-gf180mcu_fd_io
66 changes: 66 additions & 0 deletions .github/workflows/drc_gf180mcu_fd_ip_sram_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Copyright 2022 GlobalFoundries PDK Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# This is a Github Actions for testing DRC rule deck of GF180MCU
name: Regression testing the DRC rules against gf180mcu_fd_ip_sram

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events
push:
pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Defines environment variables
env:
PDK_ROOT: $GITHUB_WORKSPACE/rules/klayout
PDK: drc

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "DRC_gf180mcu_fd_ip_sram_testing"
DRC_gf180mcu_fd_ip_sram_testing:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Gets python version with list of needed requirements
- uses: actions/setup-python@v3
with:
python-version: '3.9'
cache: 'pip'
cache-dependency-path: '**/requirements.test.txt'

# Installs requirements
- run: pip install -r ./rules/klayout/requirements.test.txt

# Installs Klayout verison 0.27.8
- name: Installing Klayout 0.27.8
run: |
wget https://www.klayout.org/downloads/Ubuntu-20/klayout_0.27.8-1_amd64.deb
sudo apt-get install qt5-default qttools5-dev libqt5xmlpatterns5-dev qtmultimedia5-dev libqt5multimediawidgets5 libqt5svg5-dev
sudo dpkg -i ./klayout_0.27.8-1_amd64.deb
sudo apt-get install -f -y

# Runs a set of commands using the runners shell
- name: Testing DRC for gf180mcu_fd_ip_sram
run: |
cd ./rules/klayout/drc/testing
make test-DRC-gf180mcu_fd_ip_sram
66 changes: 66 additions & 0 deletions .github/workflows/drc_gf180mcu_fd_sc_mcu7t5v0_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Copyright 2022 GlobalFoundries PDK Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# This is a Github Actions for testing DRC rule deck of GF180MCU
name: Regression testing the DRC rules against gf180mcu_fd_sc_mcu7t5v0

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events
push:
pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Defines environment variables
env:
PDK_ROOT: $GITHUB_WORKSPACE/rules/klayout
PDK: drc

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "DRC_gf180mcu_fd_sc_mcu7t5v0_testing"
DRC_gf180mcu_fd_sc_mcu7t5v0_testing:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Gets python version with list of needed requirements
- uses: actions/setup-python@v3
with:
python-version: '3.9'
cache: 'pip'
cache-dependency-path: '**/requirements.test.txt'

# Installs requirements
- run: pip install -r ./rules/klayout/requirements.test.txt

# Installs Klayout verison 0.27.8
- name: Installing Klayout 0.27.8
run: |
wget https://www.klayout.org/downloads/Ubuntu-20/klayout_0.27.8-1_amd64.deb
sudo apt-get install qt5-default qttools5-dev libqt5xmlpatterns5-dev qtmultimedia5-dev libqt5multimediawidgets5 libqt5svg5-dev
sudo dpkg -i ./klayout_0.27.8-1_amd64.deb
sudo apt-get install -f -y

# Runs a set of commands using the runners shell
- name: Testing DRC for gf180mcu_fd_sc_mcu7t5v0
run: |
cd ./rules/klayout/drc/testing
make test-DRC-gf180mcu_fd_sc_mcu7t5v0
66 changes: 66 additions & 0 deletions .github/workflows/drc_gf180mcu_fd_sc_mcu9t5v0_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Copyright 2022 GlobalFoundries PDK Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# This is a Github Actions for testing DRC rule deck of GF180MCU
name: Regression testing the DRC rules against gf180mcu_fd_sc_mcu9t5v0

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events
push:
pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Defines environment variables
env:
PDK_ROOT: $GITHUB_WORKSPACE/rules/klayout
PDK: drc

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "DRC_gf180mcu_fd_sc_mcu9t5v0_testing"
DRC_gf180mcu_fd_sc_mcu9t5v0_testing:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Gets python version with list of needed requirements
- uses: actions/setup-python@v3
with:
python-version: '3.9'
cache: 'pip'
cache-dependency-path: '**/requirements.test.txt'

# Installs requirements
- run: pip install -r ./rules/klayout/requirements.test.txt

# Installs Klayout verison 0.27.8
- name: Installing Klayout 0.27.8
run: |
wget https://www.klayout.org/downloads/Ubuntu-20/klayout_0.27.8-1_amd64.deb
sudo apt-get install qt5-default qttools5-dev libqt5xmlpatterns5-dev qtmultimedia5-dev libqt5multimediawidgets5 libqt5svg5-dev
sudo dpkg -i ./klayout_0.27.8-1_amd64.deb
sudo apt-get install -f -y

# Runs a set of commands using the runners shell
- name: Testing DRC for gf180mcu_fd_sc_mcu9t5v0
run: |
cd ./rules/klayout/drc/testing
make test-DRC-gf180mcu_fd_sc_mcu9t5v0
66 changes: 66 additions & 0 deletions .github/workflows/drc_regression_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Copyright 2022 GlobalFoundries PDK Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# This is a Github Actions for testing DRC rule deck of GF180MCU
name: Regression testing the DRC rules

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events
push:
pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Defines environment variables
env:
PDK_ROOT: $GITHUB_WORKSPACE/rules/klayout
PDK: drc

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "DRC_Regression_testing"
DRC_Regression_testing:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Gets python version with list of needed requirements
- uses: actions/setup-python@v3
with:
python-version: '3.9'
cache: 'pip'
cache-dependency-path: '**/requirements.test.txt'

# Installs requirements
- run: pip install -r ./rules/klayout/requirements.test.txt

# Installs Klayout verison 0.27.8
- name: Installing Klayout 0.27.8
run: |
wget https://www.klayout.org/downloads/Ubuntu-20/klayout_0.27.8-1_amd64.deb
sudo apt-get install qt5-default qttools5-dev libqt5xmlpatterns5-dev qtmultimedia5-dev libqt5multimediawidgets5 libqt5svg5-dev
sudo dpkg -i ./klayout_0.27.8-1_amd64.deb
sudo apt-get install -f -y

# Runs a set of commands using the runners shell
- name: Testing DRC for Regression
run: |
cd ./rules/klayout/drc/testing
make test-DRC_main -j$(nproc)
Loading