Skip to content

Bump djlint from 1.34.1 to 1.36.2 #100

Bump djlint from 1.34.1 to 1.36.2

Bump djlint from 1.34.1 to 1.36.2 #100

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
cookiecutter_tests:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macOS-latest
name: "pytest ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run tests
run: pytest -n auto tests
docker:
strategy:
fail-fast: false
matrix:
script:
- name: Basic
args: ""
name: "Docker ${{ matrix.script.name }}"
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install dependencies
run: pip install -r requirements.txt
- name: Docker ${{ matrix.script.name }}
run: sh tests/test_docker.sh ${{ matrix.script.args }}
linter:
name: "Project Linter"
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./nexical_core_interface
steps:
- name: Checkout Code Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: pip install -r requirements.txt
working-directory: .
- name: Generate Cookiecutter project
run: cookiecutter . --no-input
working-directory: .
- name: Run pre-commit
uses: pre-commit/[email protected]
pytest:
name: "Project Pytest"
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./nexical_core_interface
steps:
- name: Checkout Code Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: pip install -r requirements.txt
working-directory: .
- name: Generate Cookiecutter project
run: cookiecutter . --no-input
working-directory: .
- name: Create .secret environment file
run: touch .env/.secret
- name: Build the Stack
run: docker compose build
- name: Run DB Migrations
run: docker compose run --rm ui python manage.py migrate
- name: Run Django UI Tests
run: docker compose run ui pytest --ds=config.settings.local.ui -o 'python_files=test_ui_*.py'
- name: Run Django API Tests
run: docker compose run api pytest --ds=config.settings.local.api -o 'python_files=test_api_*.py'
- name: Tear down the Stack
run: docker compose down