-
Notifications
You must be signed in to change notification settings - Fork 5
59 lines (46 loc) · 1.6 KB
/
modules-tests.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: Runs the tests for library modules
run-name: Executed by ${{ github.actor }}
on:
pull_request:
workflow_dispatch:
jobs:
modules-tests:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install Avocado to run tests
run: pip3 install 'avocado-framework<104.0'
- name: Run the ar module test
run: ./tests/test_module.py metadata/autils/archive/ar.yml
static-checks:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install Avocado to allow for lint check on Python code under tests directory
run: pip3 install 'avocado-framework<104.0'
- name: run static checks
uses: avocado-framework/avocado-ci-tools@main
with:
avocado-static-checks: true
api-stability-tests:
runs-on: ubuntu-latest
steps:
- name: Check out Autils code from PR
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Fetch main branch
run: git fetch origin main
- name: Check for changes in tests directory
id: test_changes
run: |
git diff --quiet origin/main -- tests/
continue-on-error: true
- name: Install Avocado to run tests
if: steps.test_changes.outcome == 'failure'
run: pip3 install 'avocado-framework<104.0'
- name: Run API stability tests
if: steps.test_changes.outcome == 'failure'
run: ./tests/test_module.py metadata/autils/archive/ar.yml