Skip to content

fix: Remove Settings import in settings file #545

fix: Remove Settings import in settings file

fix: Remove Settings import in settings file #545

Workflow file for this run

name: Django CI
on:
push:
branches: [master]
pull_request:
branches:
- "**"
jobs:
run_tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
toxenv: ["django42", "quality", "pii_check", "check_keywords"]
services:
mysql:
image: mysql:8.0
options: '--health-cmd="mysqladmin ping -h localhost" --health-interval=10s --health-timeout=5s --health-retries=3'
env:
MYSQL_ROOT_PASSWORD:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: "edx_notes_api"
ports:
- 3306:3306
elasticsearch:
image: elasticsearch:7.13.4
options: '--health-cmd="curl -f http://localhost:9200 || exit 1" --health-interval=10s --health-timeout=5s --health-retries=3'
env:
discovery.type: single-node
bootstrap.memory_lock: "true"
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
ports:
- 9200:9200
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install system packages
run: sudo apt-get update && sudo apt-get install -y libxmlsec1-dev
- name: Install pip and Tox
run: pip install --upgrade pip tox
- name: Run Tox tests
env:
CONN_MAX_AGE: 60
DB_ENGINE: django.db.backends.mysql
DB_HOST: 127.0.0.1
DB_NAME: edx_notes_api
DB_PASSWORD:
DB_PORT: 3306
DB_USER: root
ENABLE_DJANGO_TOOLBAR: 1
ELASTICSEARCH_URL: http://127.0.0.1:9200
run: tox -e ${{ matrix.toxenv }}