Update gdsfactory requirement from ~=8.8.9 to >=8.8.9,<8.14.0 #1403
Workflow file for this run
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: Test code | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Test pre-commit hooks | |
run: | | |
python -m pip install --upgrade pip | |
pip install pre-commit | |
pre-commit run -a | |
test_code: | |
runs-on: ubuntu-latest | |
container: ghcr.io/gdsfactory/gdsfactory:main | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
make install | |
- name: Test with pytest | |
run: pytest tests/ | |
test_code_coverage: | |
runs-on: ubuntu-latest | |
container: ghcr.io/gdsfactory/gdsfactory:main | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
make install | |
- name: Test with pytest | |
run: | | |
pytest --cov=ubcpdk tests/ | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true |