-
Notifications
You must be signed in to change notification settings - Fork 14
45 lines (40 loc) · 1.06 KB
/
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: Execute tests
on:
workflow_call:
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- name: Install bats
uses: bats-core/[email protected]
with:
bats-version: 1.10.0
support-install: false
assert-install: false
detik-install: false
file-install: false
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 1
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install .
- name: Execute Tests
run: |
bats -F pretty -T --print-output-on-failure test.bats
env:
TERM: linux
QE_ES_SERVER: ${{ secrets.QE_ES_SERVER }}