Skip to content

Commit

Permalink
Update run-layout-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasc-ubc committed Dec 12, 2023
1 parent a3daf0e commit 075af60
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/run-layout-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,19 @@ jobs:
uses: actions/checkout@v3

# can also specify python version if needed
- name: setup python
- 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 packages
- name: install python 3.11 packages
run: |
python -m pip install --upgrade pip
pip install klayout numpy scipy pytest pytest-cov
- name: Test with pytest
- name: Test with pytest, python 3.11
run: pytest --cov=klayout_dot_config/python/SiEPIC klayout_dot_config/tech --cov-report=xml

- name: Upload coverage to Codecov
Expand All @@ -40,3 +44,17 @@ jobs:
files: ./coverage.xml
fail_ci_if_error: true

- name: setup python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: "pip"
cache-dependency-path: pyproject.toml

- name: install python 3.9 packages
run: |
python -m pip install --upgrade pip
pip install klayout numpy scipy pytest pytest-cov
- name: Test with pytest, python 3.9
run: pytest klayout_dot_config/tech

0 comments on commit 075af60

Please sign in to comment.