46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: Run All Tests
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
# TEMPORARY: Replace with main once bs5 is merged
|
|
- 'feat/bs5'
|
|
paths:
|
|
- 'ietf/**'
|
|
|
|
jobs:
|
|
tests:
|
|
name: Run Tests
|
|
runs-on: ubuntu-latest
|
|
container: ghcr.io/ietf-tools/datatracker-test-base:latest
|
|
|
|
services:
|
|
db:
|
|
image: ghcr.io/ietf-tools/datatracker-db:latest
|
|
volumes:
|
|
- mariadb-data:/var/lib/mysql
|
|
env:
|
|
MYSQL_ROOT_PASSWORD: ietf
|
|
MYSQL_DATABASE: ietf_utf8
|
|
MYSQL_USER: django
|
|
MYSQL_PASSWORD: RkTkDPFnKpko
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Prepare for tests
|
|
run: |
|
|
chmod +x ./dev/tests/prepare.sh
|
|
sh ./dev/tests/prepare.sh
|
|
|
|
- name: Ensure DB is ready
|
|
run: |
|
|
/usr/local/bin/wait-for db:3306 -- echo "DB ready"
|
|
|
|
- name: Run all tests
|
|
run: |
|
|
echo "Running checks..."
|
|
./ietf/manage.py check
|
|
echo "Running tests..."
|
|
./ietf/manage.py test --settings=settings_sqlitetest --failfast
|