-
Notifications
You must be signed in to change notification settings - Fork 0
152 lines (138 loc) · 4.39 KB
/
benchmark.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
---
name: Benchmark
"on":
push:
branches:
- update-dependencies-molecule-24.x
jobs:
glances:
name: "Glances"
runs-on: ubuntu-latest
steps:
- name: Install Glances
run: pip install glances
- name: Start Glances in background
run: |
glances --export csv --export-csv-file glances.csv --quiet &
echo $! > GLANCES_PID
- name: Free disk space
uses: jlumbroso/[email protected]
- name: Checkout
# yamllint disable-line rule:line-length
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup just
# yamllint disable-line rule:line-length
uses: extractions/setup-just@dd310ad5a97d8e7b41793f8ef055398d51ad4de6 # v2.0.0
with:
# renovate: datasource=crate depName=just
just-version: 1.25.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install Python
# yamllint disable-line rule:line-length
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
# renovate: datasource=docker depName=python versioning=docker
python-version: 3.12.2
cache: pip
- name: Update apt
run: sudo apt update
- name: Install test dependencies
run: sudo apt install vagrant virtualbox
- name: Install dependencies
run: just install-dependencies
- name: Stop Glances
run: kill $(cat GLANCES_PID)
- name: Upload Glances CSV
uses: actions/upload-artifact@v4
with:
name: glances-metrics
path: glances.csv
# test-parallel-false:
# name: "Test - Parallel: false"
# runs-on: ubuntu-latest
# strategy:
# matrix:
# cores: [1, 2, 3, 4]
#
# steps:
# - name: Free disk space
# uses: jlumbroso/[email protected]
#
# - name: Checkout
# # yamllint disable-line rule:line-length
# uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
#
# - name: Setup just
# # yamllint disable-line rule:line-length
# uses: extractions/setup-just@dd310ad5a97d8e7b41793f8ef055398d51ad4de6 # v2.0.0
# with:
# # renovate: datasource=crate depName=just
# just-version: 1.25.2
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Install Python
# # yamllint disable-line rule:line-length
# uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
# with:
# # renovate: datasource=docker depName=python versioning=docker
# python-version: 3.12.2
# cache: pip
#
# - name: Update apt
# run: sudo apt update
#
# - name: Install test dependencies
# run: sudo apt install vagrant virtualbox
#
# - name: Install dependencies
# run: just install-dependencies
#
# - name: Run
# run: MOLECULE_CPUS=${{ matrix.cores }} just test
#
# test-parallel-true:
# name: "Test - Parallel: true"
# runs-on: ubuntu-latest
# strategy:
# matrix:
# instance: [workstation-pop-os, server-nas, server-pi]
# cores: [1, 2, 3, 4]
#
# steps:
# - name: Free disk space
# uses: jlumbroso/[email protected]
#
# - name: Checkout
# # yamllint disable-line rule:line-length
# uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
#
# - name: Setup just
# # yamllint disable-line rule:line-length
# uses: extractions/setup-just@dd310ad5a97d8e7b41793f8ef055398d51ad4de6 # v2.0.0
# with:
# # renovate: datasource=crate depName=just
# just-version: 1.25.2
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Install Python
# # yamllint disable-line rule:line-length
# uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
# with:
# # renovate: datasource=docker depName=python versioning=docker
# python-version: 3.12.2
# cache: pip
#
# - name: Update apt
# run: sudo apt update
#
# - name: Install test dependencies
# run: sudo apt install vagrant virtualbox
#
# - name: Install dependencies
# run: just install-dependencies
#
# - name: Run
# run: MOLECULE_CPUS=${{ matrix.cores }} just test --platform-name=${{ matrix.instance }}