-
-
Notifications
You must be signed in to change notification settings - Fork 92
61 lines (50 loc) · 1.52 KB
/
run-layout-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Run SiEPIC-Tool 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.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
- 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
uses: codecov/codecov-action@v3
if: github.repository_owner == 'SiEPIC'
with:
token: ${{ secrets.CODECOV_TOKEN }}
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