-
Notifications
You must be signed in to change notification settings - Fork 327
42 lines (39 loc) · 1.19 KB
/
update_local_viz.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
name: Update local visualization
on:
workflow_dispatch:
inputs:
name:
description: 'Trigger'
jobs:
upload_zoltar:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.2]
steps:
- name: check disk space and free
run: |
sudo swapoff -a
sudo rm -f /swapfile
sudo apt clean
docker rmi $(docker image ls -aq)
df -h
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- run: npm install
- run: pip3 install -r visualization/requirements.txt
- run: bash ./travis/vis-build.sh
env:
Z_USERNAME: ${{ secrets.Z_USERNAME}}
Z_PASSWORD: ${{ secrets.Z_PASSWORD}}
GH_TOKEN: ${{secrets.GH_TOKEN}}
- name: check disk space after all steps (monitoring)
run: df -h