Skip to content

Playwright Tests

Playwright Tests #7

Workflow file for this run

name: Playwright Tests
on:
# push:
# branches: [ main, master ]
# pull_request:
# branches: [ main, master ]
workflow_dispatch:
inputs:
number_of_runs:
description: 'Number of runs'
required: true
type: number
jobs:
test:
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
max-parallel: 30
matrix:
instance: ${{ fromJson('[' + join(range(1, github.event.inputs.number_of_runs + 1), ', ') + ']') }}

Check failure on line 20 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Playwright Tests

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 20, Col: 19): Unexpected symbol: '+'. Located at position 14 within expression: fromJson('[' + join(range(1, github.event.inputs.number_of_runs + 1), ', ') + ']') .github/workflows/test.yml (Line: 20, Col: 19): Unexpected value '${{ fromJson('[' + join(range(1, github.event.inputs.number_of_runs + 1), ', ') + ']') }}'
steps:
- uses: actions/checkout@v3
with:
repository: macnev2013/p_pw_mg
token: ${{ secrets.ACCESS_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Ensure browsers are installed
run: python -m playwright install
- name: Run
run: python main.py
env:
EMAIL: ${{ secrets.EMAIL }}
PASSWORD: ${{ secrets.PASSWORD }}
LOGIN_URL: ${{ secrets.LOGIN_URL }}
BROWSER_STATE: ${{ secrets.BROWSER_STATE_1 }}