Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

frontend build location #629

frontend build location

frontend build location #629

Workflow file for this run

name: Prefix (baseURL) Test
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
prefix-test:
timeout-minutes: 40
strategy:
matrix:
node-version: [20.x]
python-versions: ['3.8', '3.9', '3.10', '3.11']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-versions }}
- name: testing with ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Build the Docker image
working-directory: ./tools/docker/nginx-prefix
run: docker build . --file Dockerfile --tag taipy-nginx-proxy
- name: run nginx reverse proxy docker container
run: docker run -d -p 4000:4000 taipy-nginx-proxy
- name: Install dom dependencies
working-directory: ./gui/dom
run: npm ci
- name: Install dependencies
working-directory: ./gui
run: npm ci --omit=optional
- name: Run npm build
run: npm run build --if-present
working-directory: ./gui
- name: install libmagic on macos
if: matrix.os == 'macos-latest'
run: brew install libmagic
- name: install pipenv and install dependencies
run: |
pip install --upgrade pip
pip install pipenv==2023.7.23
pipenv install --dev
pipenv run pip install jsonschema==4.17.3 "pandas>=2.0.0,<2.1"
pipenv run pip freeze
pipenv run playwright install chromium --with-deps
- name: run pytest
run: |
pipenv run pytest -m teste2e tests --e2e-base-url="/prefix/" --e2e-port="4000"