Skip to content

Fix #292 -- Change admin widgets' JS media ordering #368

Fix #292 -- Change admin widgets' JS media ordering

Fix #292 -- Change admin widgets' JS media ordering #368

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
lint-command:
- bandit -r . -x ./tests
- black --check --diff .
- flake8 .
- isort --check-only --diff .
- pydocstyle .
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
cache: 'pip'
cache-dependency-path: 'linter-requirements.txt'
- run: python -m pip install -r linter-requirements.txt
- run: ${{ matrix.lint-command }}
dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- run: python -m pip install --upgrade pip build wheel twine readme-renderer
- run: python -m build --sdist --wheel
- run: python -m twine check dist/*
standardjs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '12.x'
- run: npm install -g standard
- run: standard
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- run: sudo apt-get install -y gettext graphviz
- run: python -m pip install -e .[docs]
- run: python -m sphinx -W -b doctest -b html docs docs/_build
PyTest:
needs:
- lint
- standardjs
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
django-version:
- "3.2"
- "4.1"
- "4.2"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: python -m pip install Django~="${{ matrix.django-version }}.0"
- run: python -m pip install -e .[test]
- run: python -m pytest -m "not selenium"
- uses: codecov/codecov-action@v4
Selenium:
needs:
- lint
- standardjs
strategy:
matrix:
python-version:
- "3.x"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Chrome
run: sudo apt-get install -y google-chrome-stable
- name: Install Selenium
run: |
mkdir bin
curl -O https://chromedriver.storage.googleapis.com/`curl -s https://chromedriver.storage.googleapis.com/LATEST_RELEASE`/chromedriver_linux64.zip
unzip chromedriver_linux64.zip -d bin
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: python -m pip install Django
- run: python -m pip install -e .[test,selenium]
- run: python -m pytest -m selenium
- uses: codecov/codecov-action@v4