-
Notifications
You must be signed in to change notification settings - Fork 3
58 lines (51 loc) · 1.3 KB
/
test_integration.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: Integration Tests
on:
workflow_dispatch:
inputs:
environment:
required: false
description: 'The environment to run the tests in'
default: salesdemo
type: environment
workflow_call:
inputs:
environment:
required: false
description: 'The environment to run the tests in'
default: salesdemo
type: string
jobs:
integration_tests:
name: Integration
runs-on: ubuntu-latest
environment:
name: ${{ inputs.environment }}
env:
DUPLO_HOST: ${{ vars.DUPLO_HOST }}
DUPLO_TOKEN: ${{ secrets.DUPLO_TOKEN }}
steps:
# checkout code
- name: Checkout Code
uses: actions/checkout@v4
# install python
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
cache: 'pip'
# install the project
- name: Install dependencies
run: |
pip install .[build,test]
# run the tests
- name: Test with pytest
run: |
pytest src --junit-xml=test-results.xml -m integration
- name: Surface failing tests
if: always()
uses: pmeier/pytest-results-action@main
with:
path: test-results.xml
summary: true
display-options: fEX
fail-on-empty: true