Skip to content

Commit

Permalink
Merge branch 'optuna:master' into plotly-timeline-plot
Browse files Browse the repository at this point in the history
  • Loading branch information
eukaryo committed Mar 17, 2023
2 parents 35df5f6 + 65558b7 commit 19750bd
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/visual-regression.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Visual regression tests with Netlify

on:
pull_request:
paths:
- 'optuna/visualization/**'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.run_number || github.ref }}
cancel-in-progress: true

jobs:
tests:

runs-on: ubuntu-latest

# Not intended for forks.
if: github.repository == 'optuna/optuna'

steps:

- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: 3.8

- name: Install Optuna
run: |
pip install -U pip
pip install --progress-bar off .
- name: Install Optuna visual regression
run: |
git clone https://github.com/optuna/optuna-visualization-regression-tests.git
pip install -r optuna-visualization-regression-tests/requirements.txt
- name: Build
run: |
pushd optuna-visualization-regression-tests
python visual_regression_tests.py --heavy --output-dir ./public
popd
env:
OMP_NUM_THREADS: 1
- uses: actions/upload-artifact@v2
with:
name: built-html
path: |
./optuna-visualization-regression-tests/public
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v2
with:
publish-dir: './optuna-visualization-regression-tests/public'
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1

0 comments on commit 19750bd

Please sign in to comment.