add end to end playwright test #38
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
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 GitHub Actions / buildInvalid workflow file
|
||
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 |