forked from Webperf-se/webperf_core
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (52 loc) · 1.96 KB
/
regression-test-ylt.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
name: "Regression Test - Quality on frontend (Yellow Lab Tools) Test"
on:
workflow_dispatch:
push:
paths-ignore:
- '**.md'
- 'software-full.json'
- 'software-sources.json'
- '**update-software.yml'
- 'update_software.py'
- '**software-rules.json'
- 'Dockerfile'
- '**regression-test-docker-image.yml'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
version: [17]
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.13' # 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
- name: Setup dependencies using pip
run: pip install -r requirements.txt
- name: Setup Node.js (v4 version 20.x)
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Setup node dependencies (ONLY used for Yellow Lab Tools)
run: npm install -g node-gyp
- if: matrix.os == 'ubuntu-latest'
name: Setup libjpeg and fontconfig (ONLY used for Yellow Lab Tools) - LINUX
run: sudo apt-get install libjpeg-dev libfontconfig
shell: bash
- name: Setup npm packages
run: npm install --omit=dev
- if: ${{ matrix.os == 'ubuntu-latest' }}
name: RUNNING TEST - LINUX
run: |
python default.py -t ${{ matrix.version }} -r -i sites.json -o data/testresult-${{ matrix.version }}.json
python tools/verify_result.py -t ${{ matrix.version }}
- if: ${{ matrix.os == 'windows-latest' }}
name: RUNNING TEST - WINDOWS
run: |
python default.py -t ${{ matrix.version }} -r -i sites.json -o data\testresult-${{ matrix.version }}.json
python tools\verify_result.py -t ${{ matrix.version }}