未验证 提交 df2627cb 编写于 作者: P Peter Pan 提交者: GitHub

build: setup github actions (#792)

* feat: restore selected model when navigating back to graph page

* build: setup github actions

* build: create lint status check
上级 381d8b80
name: Build
on: [push, pull_request]
jobs:
build:
name: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.6', '3.7', '3.8']
node-version: ['12', '14']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install requirements
run: |
pip install wheel
pip install -r requirements.txt
- name: Build whl
run: |
python setup.py bdist_wheel
- name: Upload whl
uses: actions/upload-artifact@v2
with:
name: VisualDL
path: dist/*.whl
name: Lint
on: pull_request
jobs:
lint_fe:
name: Lint FE
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '14'
- name: Install dependencies
run: |
cd frontend
./scripts/install.sh
yarn
- name: Run linters
uses: wearerequired/lint-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
eslint: true
prettier: true
eslint_dir: frontend/
eslint_extensions: js,ts,jsx,tsx
eslint_args: "--max-warnings 0 --ignore-path .gitignore"
lint_be:
name: Lint BE
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install requirements
run: |
echo "TODO"
- name: Lint
run: |
echo: "TODO"
language: python
python:
- "3.8.3"
jobs:
include:
- name: "Bionic Linux"
dist: bionic
before_install:
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
- name: "MacOS"
osx_image: xcode11.5
before_install:
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
# - name: "Windows"
# os: windows
# language: shell
# before_install:
# - choco install nvm.portable
# - choco install python --version 3.8.3
# - python -m pip install --upgrade pip
# env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
install:
- nvm install 12.18.0
- pip3 install --upgrade pip
- pip3 install -r requirements.txt
before_script:
- nvm use 12.18.0
script:
- python3 setup.py bdist_wheel || python setup.py bdist_wheel
notifications:
email:
on_success: change
on_failure: always
......@@ -6,7 +6,7 @@
<p align="center">
<a href="https://travis-ci.org/PaddlePaddle/VisualDL"><img src="https://img.shields.io/travis/paddlepaddle/visualdl/develop?style=flat-square" alt="Build Status" /></a>
<a href="https://github.com/PaddlePaddle/VisualDL/actions"><img src="https://img.shields.io/github/workflow/status/PaddlePaddle/VisualDL/build?style=flat-square" alt="Build Status" /></a>
<a href="https://pypi.org/project/visualdl/"><img src="https://img.shields.io/pypi/v/visualdl?style=flat-square" alt="PyPI" /></a>
<a href="https://pypi.org/project/visualdl/#files"><img src="https://img.shields.io/pypi/dm/visualdl?style=flat-square" alt="Downloads" /></a>
<a href="https://github.com/PaddlePaddle/VisualDL/blob/develop/LICENSE"><img src="https://img.shields.io/github/license/paddlepaddle/visualdl?style=flat-square" alt="License" /></a>
......
......@@ -7,7 +7,7 @@
<p align="center">
<a href="https://travis-ci.org/PaddlePaddle/VisualDL"><img src="https://img.shields.io/travis/paddlepaddle/visualdl/develop?style=flat-square" alt="Build Status" /></a>
<a href="https://github.com/PaddlePaddle/VisualDL/actions"><img src="https://img.shields.io/github/workflow/status/PaddlePaddle/VisualDL/build?style=flat-square" alt="Build Status" /></a>
<a href="https://pypi.org/project/visualdl/"><img src="https://img.shields.io/pypi/v/visualdl?style=flat-square" alt="PyPI" /></a>
<a href="https://pypi.org/project/visualdl/#files"><img src="https://img.shields.io/pypi/dm/visualdl?style=flat-square" alt="Downloads" /></a>
<a href="https://github.com/PaddlePaddle/VisualDL/blob/develop/LICENSE"><img src="https://img.shields.io/github/license/paddlepaddle/visualdl?style=flat-square" alt="License" /></a>
......
......@@ -4,7 +4,7 @@
<br />
<p align="center">
<a href="https://travis-ci.org/PaddlePaddle/VisualDL"><img src="https://img.shields.io/travis/PaddlePaddle/VisualDL/develop?style=flat-square" alt="Build Status" /></a>
<a href="https://github.com/PaddlePaddle/VisualDL/actions"><img src="https://img.shields.io/github/workflow/status/PaddlePaddle/VisualDL/build?style=flat-square" alt="Build Status" /></a>
<a href="https://github.com/PaddlePaddle/VisualDL"><img src="https://img.shields.io/github/languages/top/PaddlePaddle/VisualDL?style=flat-square" alt="GitHub top language" /></a>
<a href="https://github.com/prettier/prettier"><img src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square" alt="code style: prettier" /></a>
<a href="https://lerna.js.org/"><img src="https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg?style=flat-square" alt="lerna"></a>
......
......@@ -4,7 +4,7 @@
<br />
<p align="center">
<a href="https://travis-ci.org/PaddlePaddle/VisualDL"><img src="https://img.shields.io/travis/PaddlePaddle/VisualDL?style=flat-square" alt="Build Status" /></a>
<a href="https://github.com/PaddlePaddle/VisualDL/actions"><img src="https://img.shields.io/github/workflow/status/PaddlePaddle/VisualDL/build?style=flat-square" alt="Build Status" /></a>
<a href="https://github.com/PaddlePaddle/VisualDL"><img src="https://img.shields.io/github/languages/top/PaddlePaddle/VisualDL?style=flat-square" alt="GitHub top language" /></a>
<a href="https://github.com/prettier/prettier"><img src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square" alt="code style: prettier" /></a>
<a href="https://lerna.js.org/"><img src="https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg?style=flat-square" alt="lerna"></a>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册