Skip to content

Commit

Permalink
Merge pull request #742 from geekygirlsarah/main
Browse files Browse the repository at this point in the history
Resolve "no db" issue from CI/CD validate commands
  • Loading branch information
geekygirlsarah authored Jul 29, 2024
2 parents e553c7f + 17891a3 commit 6973bf1
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 6973bf1

Please sign in to comment.