-
Notifications
You must be signed in to change notification settings - Fork 324
58 lines (56 loc) · 1.95 KB
/
upload_to_zoltar.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
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Trigger zoltar upload
on:
workflow_dispatch:
inputs:
name:
description: 'Trigger'
schedule:
- cron: '0 */6 * * *'
- cron: '30 2 * * *' # 10:30 EDT or 9:30 EST
jobs:
upload_zoltar:
if: github.repository_owner == 'reichlab'
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.2]
steps:
# - run: sudo apt-get remove ghc-** azure-cli firefox google-cloud-sdk google-chrome-stable hhvm dotnet-sdk-** dotnet-runtime-** moby-** adoptopenjdk-** mongodb-org-** mysql-**
# - run: sudo apt-get autoremove
- name: Free disk space
run: |
df --human-readable
sudo apt clean
docker rmi $(docker image ls --all --quiet)
rm --recursive --force "$AGENT_TOOLSDIRECTORY"
- name: Maximize build space
uses: easimon/maximize-build-space@v4
with:
root-reserve-mb: 512
swap-size-mb: 1024
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
- name: Check space available
run: df --human-readable
- uses: actions/checkout@v3
- name: Check space available after checkout
run: df --human-readable
# - 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@v4
with:
python-version: '3.11.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
env:
CFLAGS: "-Wno-deprecated-declarations -Wno-unreachable-code"
- run: bash travis/upload_zoltar_master.sh
env:
Z_USERNAME: ${{ secrets.Z_USERNAME}}
Z_PASSWORD: ${{ secrets.Z_PASSWORD}}
GH_TOKEN: ${{secrets.GH_TOKEN}}