Merge pull request #207 from bport/fix_migrations #621
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pydici test | |
on: [push] | |
jobs: | |
check_migrations: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Check migrations | |
run: | | |
echo "SECRET_KEY='test'" > ./pydici/settings/local.py | |
./manage.py makemigrations --check | |
build_and_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Launch pydici (mariadb, memcached, redis, django and celery) | |
run: docker compose up -d | |
- name: setup fs right | |
run: sudo chown -R $USER:$USER data && sudo chmod 777 -R data | |
- name: Run tests | |
run: docker exec -e RUNNING_IN_GH=1 pydici-django-1 /code/run-test.sh |