Skip to content

Commit

Permalink
Add django migrate command to validate CI/CD commands
Browse files Browse the repository at this point in the history
  • Loading branch information
geekygirlsarah committed Jul 29, 2024
1 parent e553c7f commit 17891a3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/run-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,20 @@ jobs:
steps:
- name: Checkout the branch
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11.4
cache: 'pip'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Create SQLite local database
run: python manage.py migrate

- name: Run unit tests
run: python manage.py test
run: python manage.py test
3 changes: 3 additions & 0 deletions .github/workflows/validate-language-info-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Create SQLite local database
run: python manage.py migrate

- name: Run validate command
run: python manage.py validatelanginfofiles
3 changes: 3 additions & 0 deletions .github/workflows/validate-meta-info-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Create SQLite local database
run: python manage.py migrate

- name: Run validate command
run: python manage.py validatemetainfofile

0 comments on commit 17891a3

Please sign in to comment.