integration-e2e-updates #30
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: | |
# Checkout the main repository (qualibrate-app) | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# Checkout the private calibration scripts repository | |
- name: Checkout Calibration Scripts | |
uses: actions/checkout@v4 | |
with: | |
repository: 'qua-platform/qualibrate-examples' # Private repo | |
path: 'qualibrate-examples' | |
token: ${{ secrets.QUALIBRATION_EXAMPLES_TOKEN }} | |
# Install Python and create virtual environment | |
- name: Install Python and Create Environment | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
pip install "./backend[fe_tests]" | |
pip install xarray | |
# Copy calibration scripts to the default Qualibrate calibration folder | |
- name: Copy Calibration Scripts | |
run: | | |
mkdir -p ~/.qualibrate/calibrations | |
cp -r qualibrate-examples/calibrations/* ~/.qualibrate/calibrations/ | |
# Create Qualibrate configuration | |
- name: Create Qualibrate Configuration | |
run: | | |
qualibrate config --auto-accept | |
# Install Node.js | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install Playwright Dependencies | |
working-directory: ./frontend/tests | |
run: | | |
npm install | |
npx playwright install --with-deps | |
# Run Playwright Tests (Workflow 1) | |
- name: Run Playwright Tests (Workflow 1) | |
working-directory: ./frontend/tests/e2e | |
run: | | |
npx playwright test e2e/workflow1.test.ts # This line should not reference a specific workflow, but a suite of workflows | |