Skip to content

add end to end playwright test #38

add end to end playwright test

add end to end playwright test #38

Workflow file for this run

name: build
on:
push:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
strategy:
fail-fast: false
matrix:
python-version: ["3.9"]
test_type:
- tests
- tests_e2e
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: mamba-org/[email protected]
with:
python-version: ${{ matrix.python-version }}
environment-file: environment-dev.yml
create-args: >-
python=${{ matrix.python-version }}
numpy
- name: Install JHub Apps
run: |
pip install .
- name: Lint with black
uses: psf/black@stable
- name: Install Playwright
if: ${{ matrix.test_type == "tests_e2e" }}

Check failure on line 38 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 38, Col: 11): Unexpected symbol: '"tests_e2e"'. Located at position 21 within expression: matrix.test_type == "tests_e2e"
run: |
plawright install
- name: Run Tests
run: |
pytest jhub_apps/${{ matrix.test_type }} -vvv -s
- name: Test playwright
run: |
playwright install
pytest jhub_apps/tests_e2e -vvv -s