v0.4.13 #116
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: Run SiEPIC-Tools Layout tests | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- '**' | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- main | |
- master | |
jobs: | |
test_layouts: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v3 | |
# can also specify python version if needed | |
- name: setup python, 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
cache: "pip" | |
cache-dependency-path: pyproject.toml | |
- name: install Python 3.10 packages | |
run: | | |
python -m pip install --upgrade pip | |
pip install klayout numpy scipy pytest pytest-cov SiEPIC | |
- name: Test with pytest, Python 3.10 | |
run: pytest --cov=klayout/siepic_ebeam_pdk klayout/siepic_ebeam_pdk --cov-report=xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
if: github.repository_owner == 'SiEPIC' | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.xml | |
fail_ci_if_error: false | |
- name: setup python, 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
cache: "pip" | |
cache-dependency-path: pyproject.toml | |
- name: install Python 3.11 packages | |
run: | | |
python -m pip install --upgrade pip | |
pip install klayout numpy scipy pytest pytest-cov SiEPIC | |
- name: Test with pytest, Python 3.11 | |
run: pytest klayout/siepic_ebeam_pdk | |