fix plotting bounds in plot_structures #54
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-develop-cli | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ develop ] | |
pull_request: | |
branches: | |
- develop | |
- 'pre/*' # We should reduce the frequency of these builds to save resources since it tests the docs build which is pretty long. | |
jobs: | |
test-dev-commands: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.11' | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e .[dev] | |
- name: Ubuntu install Pandoc | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt-get install pandoc | |
- name: MacOS install Pandoc | |
if: matrix.os == 'macos-latest' | |
run: brew install pandoc | |
- name: Windows install Pandoc | |
if: matrix.os == 'windows-latest' | |
run: choco install pandoc | |
- name: Verify existing installations | |
run: | | |
python3 --version | |
pipx --version | |
#---------------------------------------------- | |
# ----- install & configure poetry ----- | |
#---------------------------------------------- | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.7.1 | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
#---------------------------------------------- | |
# load cached venv if cache exists | |
#---------------------------------------------- | |
- name: Load cached venv | |
id: cached-poetry-dependencies | |
uses: actions/cache@v3 | |
with: | |
path: .venv | |
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} | |
- name: Run install-dev-environment command | |
run: | | |
# Unsure if this is a valid command since it just guarantees things run on previous dependencies installation | |
# TODO finish debugging installation without previous installation. Tricky on GH Actions on its own. | |
tidy3d develop install-dev-environment | |
- name: Run development test commands | |
run: | | |
poetry run pytest tests/test_cli/full_test_develop.py | |