Skip to content

add remaining test apps to CI #3

add remaining test apps to CI

add remaining test apps to CI #3

Workflow file for this run

name: Python Tests II
on:
pull_request:
workflow_dispatch:
concurrency:
group: tests1-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash -eux {0}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
- name: Install Python dependencies
run: |
python -m pip install -U pip pre-commit
- name: Run linters
run: |
pre-commit run --hook-stage=manual --all-files
build:
name: Django Test Suite
runs-on: ubuntu-latest
steps:
- name: Checkout django-mongodb
uses: actions/checkout@v4
- name: install the django-mongodb backend
run: |
pip3 install --upgrade pip
pip3 install -e .
- name: Checkout Django
uses: actions/checkout@v4
with:
repository: 'mongodb-forks/django'
ref: 'mongodb-5.0.x'
path: 'django_repo'
- name: Install system packages for Django's Python test dependencies
run: |
sudo apt-get update
sudo apt-get install libmemcached-dev
- name: Install Django and its Python test dependencies
run: |
cd django_repo/tests/
pip3 install -e ..
pip3 install -r requirements/py3.txt
- name: Copy the test settings file
run: cp .github/workflows/mongodb_settings.py django_repo/tests/
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: 5.0
- name: Run tests
run: >
python3 django_repo/tests/runtests.py --settings mongodb_settings -v 2
admin_checks
admin_custom_urls
admin_docs
admin_ordering
admin_scripts
admin_utils
admin_widgets
check_framework
context_processors
custom_columns
custom_managers
datatypes
dbshell
empty_models
file_uploads
flatpages_tests
forms_tests
generic_inline_admin
get_earliest_or_latest
get_object_or_404
get_or_create
i18n
inline_formsets
managers_regress
managers_regress
max_lengths
messages_tests
migrate_signals
migration_test_data_persistence
model_formsets
model_formsets_regress
model_indexes
model_inheritance_regress
model_options
model_package
model_regress
model_utils
multiple_database
order_with_respect_to
pagination
properties
proxy_models
redirects_tests
reserved_names
reverse_lookup
save_delete_hooks
signals
sites_framework
sites_tests
str
string_lookup
swappable_models
test_client
test_client_regress
test_runner
test_utils
unmanaged_models
update_only_fields
user_commands
view_tests
docs:
name: Docs Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
python-version: '3.10'
- name: Install dependencies
run: |
pip install -U pip
pip install -e ".[docs]"
- name: Build docs
run: |
cd docs
make html