-
Notifications
You must be signed in to change notification settings - Fork 43
45 lines (35 loc) · 1.15 KB
/
nemo_inspector_tests.yaml
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: NeMo Inspector Tool Tests
on:
pull_request:
branches: [ "main" ]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
inspector-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install -r requirements/inspector.txt
pip install -r requirements/inspector-tests.txt
pip install -r requirements/common-tests.txt
- name: Set up Chrome
uses: browser-actions/setup-chrome@latest
- name: Set up ChromeDriver
uses: nanasess/setup-chromedriver@master
- name: Run NeMo inspector tests
run: |
export DISPLAY=:99
sudo Xvfb :99 -ac &
python -m pytest nemo_inspector/tests/ --reruns 3 --reruns-delay 1 --junitxml=results.xml --cov-report=term-missing:skip-covered --cov=visualization --durations=30 -vv