Bump gmsh from 4.13.0 to 4.14.0 #1577
Workflow file for this run
This file contains hidden or 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: Test code | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- uses: pre-commit/[email protected] | |
test_code: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
max-parallel: 12 | |
matrix: | |
plugin: [femwell, gmsh, meow, sax, tidy3d, klayout, vlsir, path_length_analysis] | |
os: [ubuntu-latest] | |
python-version: [3.12] | |
exclude: | |
- plugin: femwell | |
os: macos-latest | |
- plugin: femwell | |
os: windows-latest | |
- plugin: sax | |
python-version: 3.13 | |
name: Test ${{ matrix.plugin }} ${{ matrix.os }} ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v6 | |
- if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
sudo apt-get install -y libglu1-mesa | |
- name: Install dependencies | |
run: | | |
uv venv -p ${{ matrix.python-version }} | |
uv pip install .[${{ matrix.plugin }},dev] setuptools | |
make test-data | |
- name: Test with pytest | |
run: | | |
uv run pytest gplugins/${{ matrix.plugin }} | |
test_meep: | |
runs-on: ubuntu-latest | |
name: Test meep ubuntu-latest 3.11 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Miniconda | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
auto-update-conda: true | |
python-version: 3.11 | |
- name: Install libglu1-mesa | |
run: | | |
sudo apt-get install -y libglu1-mesa | |
- name: Install dependencies | |
shell: bash -l {0} | |
run: | | |
conda create -n mp python=3.11 -y | |
conda activate mp | |
conda install -c conda-forge pymeep pymeep-extras gdsfactory -y | |
pip install .[meep,dev] setuptools | |
pip install "numpy<2.0" | |
make test-data | |
- name: Test with pytest | |
shell: bash -l {0} | |
run: | | |
conda activate mp | |
pytest gplugins/gmeep | |
test_code_coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v6 | |
- name: Install libglu1-mesa | |
run: | | |
sudo apt-get install -y libglu1-mesa | |
- name: Install dependencies | |
run: | | |
make install test-data | |
- name: Test with pytest | |
run: | | |
make cov | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: false |