Skip to content

Add a tutorial notebook for emulator use case #1596

Add a tutorial notebook for emulator use case

Add a tutorial notebook for emulator use case #1596

Workflow file for this run

name: build
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
- ready_for_review
jobs:
build_single:
name: Build
if: github.event.pull_request.draft == true
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-python-and-package
with:
python-version: '3.11'
- name: Run unit tests including downloader
run: pytest -v --downloader
- name: Verify that we can build the package
run: python setup.py sdist bdist_wheel
build_all:
name: Build for (${{ matrix.python-version }}, ${{ matrix.os }})
if: github.event.pull_request.draft == false
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
python-version: ['3.9', '3.11']
exclude:
# already tested in build_single job
- python-version: 3.11
os: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-python-and-package
with:
python-version: ${{ matrix.python-version }}
- name: Run unit tests
run: python -m pytest -v --downloader
- name: Verify that we can build the package
run: python setup.py sdist bdist_wheel
test_dashboard:
name: Test dashboard
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-python-and-package
with:
python-version: '3.11'
extras-require: dev,dashboard
- name: Ensure browser is installed
run: python -m playwright install chromium
- name: Test dashboard
run: pytest -v -m dashboard --dashboard