-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (50 loc) · 1.41 KB
/
test-workflow.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: test-workflow
on:
pull_request:
types:
- opened
- synchronize
branches:
'main'
jobs:
sast:
uses: SmartDCSITlimited/actions-store/.github/workflows/SAST.yml@main
secret-detection:
uses: SmartDCSITlimited/actions-store/.github/workflows/SecretDetection.yml@main
python-linting:
uses: SmartDCSITlimited/actions-store/.github/workflows/PythonLinting.yml@main
run-tests:
if: |
github.repository == 'SmartDCSITlimited/test-harness'
runs-on: ubuntu-latest
steps:
- name: Setup Checkout
uses: actions/checkout@v4
- name: Setup Checkout (external)
uses: actions/checkout@v4
with:
repository: SmartDCSITlimited/test-event-generator
ssh-key: ${{ secrets.TESTKEY }}
path: external
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
- name: Install Requirements
run: |
pip install --upgrade pip
pip install pytest
pytest --version
pip install -r requirements.txt
- name: Install Requirements (external)
run: |
cd external
pip install -r requirements.txt
pip install .
cd ..
rm -rf external
- name: Run Tests
run: |
export PYTHONPATH=/workspaces/test-harness:$PYTHONPATH
pytest