First e2e integration test #8
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
# CI configuration for Playwright with Python and Qualibrate setup | |
name: Playwright Tests | |
on: | |
push: | |
branches: | |
- main | |
- integration | |
pull_request: | |
branches: | |
- main | |
- integration | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install Python and Create Environment | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m venv .venv | |
source .venv/bin/activate | |
pip install --upgrade pip | |
pip install qualibrate # Install Qualibrate package | |
pip install quam # Install Quam package | |
# pip install quam_libs # Install Quam libraries | |
# pip install quam_libs.components # Install Quam components | |
- name: Create Qualibrate Configuration | |
run: | | |
source .venv/bin/activate | |
qualibrate config --auto-accept \ | |
--spawn-runner True \ | |
--runner-address "http://localhost:8001/execution/" \ | |
--runner-timeout 2.0 \ | |
--app-storage-type local_storage \ | |
--app-user-storage "./user_storage" \ | |
--app-project "ci_project" \ | |
--log-folder "./logs" | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install Playwright Dependencies | |
run: | | |
npm install | |
npx playwright install --with-deps | |
- name: Run Playwright Tests | |
run: | | |
source .venv/bin/activate | |
npx playwright test --config=playwright.config.ts |