aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/dev-test.yml
blob: ebdad5fe7031a2377fe5aec55e134bda4313026a (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
name: Development CI

on:
  pull_request:
    branches:
      - development
  push:
    branches:
      - development

jobs:
  validate-and-test:
    name: Validate Terraform and Run Tests
    runs-on: ubuntu-latest
    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
git.ajschof.me — hosted by ajschofield — powered by cgit