Skip to content

Move getAxis to tslib #750

Move getAxis to tslib

Move getAxis to tslib #750

name: e2e-dashboard-tests
on:
pull_request:
branches:
- main
paths:
- '.github/workflows/e2e-dashboard-tests.yml'
- '**.py'
- 'tslib/**.ts'
- 'tslib/**.tsx'
- 'tslib/**/package.json'
- 'tslib/**/package-lock.json'
- 'optuna_dashboard/**.ts'
- 'optuna_dashboard/**.tsx'
- 'optuna_dashboard/package.json'
- 'optuna_dashboard/package-lock.json'
- 'optuna_dashboard/tsconfig.json'
jobs:
test:
runs-on: ubuntu-20.04
strategy:
matrix:
optuna-version: ['optuna==3.1.0', 'git+https://github.com/optuna/optuna.git']
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Setup tslib
run: make tslib
- name: Build bundle.js
working-directory: optuna_dashboard
run: |
npm install
npm run build:dev
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
architecture: x64
- name: Setup Optuna ${{ matrix.optuna-version }}
run: |
python -m pip install --progress-bar off --upgrade pip setuptools
python -m pip install --progress-bar off --upgrade ${{ matrix.optuna-version }}
- name: Install dependencies
run: |
python -m pip install --progress-bar off .
python -m pip install --progress-bar off pytest-playwright==0.4.3 # next version is flaky
- name: Install the required browsers
run: playwright install
- name: Run e2e tests
run: |
pytest e2e_tests/test_dashboard