Skip to content

add tf/opentofu IaC #301

add tf/opentofu IaC

add tf/opentofu IaC #301

Workflow file for this run

name: Run Tests
on:
[push, pull_request]
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
services:
postgres:
image: postgis/postgis:14-3.2-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: tekdb
ports:
- 5432:5432
env:
SQL_ENGINE: django.contrib.gis.db.backends.postgis
SQL_DATABASE: tekdb
SQL_USER: postgres
SQL_PASSWORD: postgres
SQL_HOST: localhost
SQL_PORT: 5432
DEBUG: 1
SECRET_KEY: ${{ secrets.POSTGRES_SECRET_KEY }}
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install gdal-bin -y
- name: Install Python dependencies
run: |
python -m pip install -r TEKDB/requirements.txt
- name: Run Ruff
run: cd TEKDB && ruff check . --output-format=github
- name: Run tests
run: |
cd TEKDB && python manage.py test