Skip to content
This repository was archived by the owner on Jul 16, 2026. It is now read-only.

admin: switch ModelAdmin bases to unfold + drop Bootstrap classes (AD… #1383

admin: switch ModelAdmin bases to unfold + drop Bootstrap classes (AD…

admin: switch ModelAdmin bases to unfold + drop Bootstrap classes (AD… #1383

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
lint:
name: Lint (ruff)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install tox
run: pip install tox
- name: Run ruff
run: tox -e lint
security:
name: Security (bandit)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install tox
run: pip install tox
- name: Run bandit
run: tox -e security
test:
name: Test (3.10)
runs-on: ubuntu-latest
needs: [lint, security]
services:
elasticsearch:
image: elasticsearch:7.17.13
ports:
- 9200/tcp
options: -e="discovery.type=single-node" --health-cmd="curl http://localhost:9200/_cluster/health" --health-interval=10s --health-timeout=5s --health-retries=10
strategy:
matrix:
python-version: ["3.10"]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Elasticsearch is reachable
run: |
curl --verbose --show-error http://localhost:${{ job.services.elasticsearch.ports[9200] }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: pip install tox
- name: Test with tox
env:
ELASTICSEARCH_URL: "127.0.0.1:${{ job.services.elasticsearch.ports[9200] }}"
run: tox -e github
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false