-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.27 KB
/
check-tests.yaml
File metadata and controls
41 lines (39 loc) · 1.27 KB
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
name: Check Application Unit-Testing
on: [pull_request]
jobs:
python_unittesting:
strategy:
matrix:
path:
- rhdzmota
- extensions/hello_world
- extensions/streamlit_webapps
name: Testing Check ${{ matrix.path }}
runs-on: ubuntu-20.04
steps:
- name: clone-repo
uses: actions/checkout@v3
with:
submodules: true
- name: target-changed-files-${{ matrix.path }}
id: target-changed-files
uses: tj-actions/changed-files@v36
with:
files: ${{ matrix.path }}/**
- name: install-python
if: steps.target-changed-files.outputs.any_changed
uses: actions/setup-python@v4
with:
python-version: "3.10.12"
- name: install-requirements
if: steps.target-changed-files.outputs.any_changed
env:
EXT_BATTERIES_INCLUDED: 1
run: |
python -m pip install -r requirements-develop.txt
python -m pip install -e ./${{ matrix.path }}
- name: test-check-${{ matrix.path }}
if: steps.target-changed-files.outputs.any_changed
run: |
bash tests-unit.sh ${{ matrix.path }}
bash tests-coverage.sh ${{ matrix.path }}