blob: 9f71515d387b675652036ddba0051fc26ac560d9 (
plain)
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
|
name: dev-tests
on:
pull_request:
branches:
- development
push:
branches:
- development
jobs:
validate-and-test:
name: Validate Terraform and Run Tests
runs-on: ubuntu-latest
environment: testing
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Install Terraform
uses: hashicorp/setup-terraform@v3
- name: Terraform Init
working-directory: terraform
run: terraform init -backend=false
- name: Terraform Validate
working-directory: terraform
run: terraform validate
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-testdox
pip install -r requirements.txt
- name: Run pytest
run: pytest tests/ -vvrP --testdox
continue-on-error: true
id: pytest
- name: Check on failures
if: steps.pytest.outcome == 'failure'
run: exit 1
|