-
Notifications
You must be signed in to change notification settings - Fork 383
45 lines (45 loc) · 1.28 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Build frontend
working-directory: ./webiojs
run: |
npm install
gulp
cp dist/pywebio.min.* ../pywebio/html/js
- name: Install package
run: pip3 install ".[all]"
- name: Install dev dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- run: npm install --save-dev @percy/cli
- name: Percy Test
run: npx percy exec -- bash ./run_all.sh
working-directory: ./test
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
- name: Upload test output
uses: actions/upload-artifact@v1
if: failure()
with:
name: test output
path: test/output
- name: Upload test output
uses: codecov/codecov-action@v3
with:
working-directory: ./test
verbose: true # optional (default = false)