Skip to content

Commit f62cf28

Browse files
committed
📶 nix-coverage integration properly working
1 parent bde8a72 commit f62cf28

File tree

32 files changed

+947
-563
lines changed

32 files changed

+947
-563
lines changed

.coveragerc

Lines changed: 0 additions & 9 deletions
This file was deleted.

.github/workflows/coverage.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ jobs:
5252
- name: Run Coverage Tests
5353
run: |
5454
nix develop . --command bash -c "
55-
coverage run -m pytest -rA tests/ &&
56-
coverage report -m &&
55+
source scripts/test_coverage.sh &&
5756
total=\$(coverage report | tail -n1 | awk '{print \$NF}' | tr -d '%') &&
5857
echo \"total=\${total}\" >> \$GITHUB_ENV &&
5958
echo \"### Total coverage: \${total}%\"

.github/workflows/create_release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ jobs:
2525
tag_name: v${{ env.VERSION }} # Use the incremented version as the tag name
2626
release_name: ${{ env.VERSION }} # Customize the release name
2727
body: |
28-
:tada: :tada: Piel Release Version: ${{ env.VERSION }}. Now stable and all CI env coverage tested. Let us know any feedback!
28+
:tada: :tada: Piel Release Version: ${{ env.VERSION }}.
2929
draft: false
3030
release: true
-39 Bytes
Loading
-11.6 KB
Loading
1.07 KB
Loading

docs/examples/03a_sax_cocotb_cosimulation.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# # Digital & Photonic Cosimulation with `sax` and `cocotb`
22

33
# <div style="padding: 10px; border-radius: 5px;">
4-
# <strong>⚠️ Warning:</strong> This example requires uses packages which are locally available when cloning and installing the `stable` verision of the github source code. See example setup as follows:
4+
# <strong>⚠️ Warning:</strong> This example requires the <code>piel-nix</code> tools environment.
5+
# <a href="https://piel.readthedocs.io/en/latest/sections/environment/index.html" target="_blank">See environment configuration documentation</a>.
56
# </div>
67

78
# + active=""
89
# !git clone https://github.com/daquintero/piel.git
910
# !cd piel/
10-
# !pip install -e .[tools]
11-
# !pip install -r requirements_notebooks.txt
11+
# !source scripts/install_piel_nix.sh
12+
# !nix develop .
1213
# -
1314

1415
# We begin by importing a parametric circuit from `gdsfactory`:
@@ -404,10 +405,12 @@
404405
# ### Model Composition
405406

406407
# +
407-
mixed_switch_lattice_circuit_netlist = (
408-
mixed_switch_lattice_circuit.get_netlist_recursive(allow_multiple=True)
408+
mixed_switch_lattice_circuit_netlist = piel.tools.gdsfactory.get_netlist_recursive(
409+
mixed_switch_lattice_circuit, allow_multiple=True
409410
)
410-
top_level_name = (mixed_switch_lattice_circuit.get_netlist())["name"]
411+
top_level_name = (piel.tools.gdsfactory.get_netlist(mixed_switch_lattice_circuit))[
412+
"name"
413+
]
411414

412415
mixed_switch_lattice_circuit_netlist.keys()
413416
# -

docs/examples/03b_optical_function_verification.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,10 +421,10 @@
421421
)
422422

423423
# +
424-
chain_3_mode_lattice_circuit_netlist = (
425-
chain_3_mode_lattice_circuit.get_netlist_recursive(allow_multiple=True)
424+
chain_3_mode_lattice_circuit_netlist = piel.tools.gdsfactory.get_netlist_recursive(
425+
chain_3_mode_lattice_circuit, allow_multiple=True
426426
)
427-
top_level_name = (chain_3_mode_lattice_circuit.get_netlist())["name"]
427+
top_level_name = piel.tools.gdsfactory.get_netlist(chain_3_mode_lattice_circuit)["name"]
428428

429429

430430
recursive_composed_required_models = sax.get_required_circuit_models(
0 Bytes
Binary file not shown.

docs/examples/07_full_flow_demo_electronic_photonic/07_full_flow_demo_electronic_photonic.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# # `piel` Electronic-Photonic Co-Design - Full Flow Demo
22

33
# <div style="padding: 10px; border-radius: 5px;">
4-
# <strong>⚠️ Warning:</strong> This example requires using the piel nix environment which are locally available when cloning and installing the `stable` verision of the github source code. See example setup as follows
4+
# <strong>⚠️ Warning:</strong> This example requires the <code>piel-nix</code> tools environment.
5+
# <a href="https://piel.readthedocs.io/en/latest/sections/environment/index.html" target="_blank">See environment configuration documentation</a>.
56
# </div>
6-
#
7-
# Note that this is only CI tested in an ubuntu environment:
8-
# ```
9-
# git clone https://github.com/daquintero/piel.git
10-
# source scripts/install_piel_nix.sh
11-
# ```
12-
#
13-
# You can verify you have the tools required by running the following magic cells:
7+
8+
# + active=""
9+
# !git clone https://github.com/daquintero/piel.git
10+
# !cd piel/
11+
# !source scripts/install_piel_nix.sh
12+
# !nix develop .
13+
# -
1414

1515
# ! which openlane
1616

0 commit comments

Comments
 (0)