Skip to content

Commit

Permalink
build: migrate when testing
Browse files Browse the repository at this point in the history
  • Loading branch information
francisvaut committed Mar 12, 2024
1 parent 65094ab commit add8e53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/backend-linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
test:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/backend-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
test:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
Expand All @@ -21,5 +21,9 @@ jobs:
python -m pip install --upgrade pip
pip install flake8
pip install -r ./backend/requirements.txt
- name: Make migrations
run: |
python ./backend/manage.py makemigrations
python ./backend/manage.py migrate
- name: Execute tests
run: cd backend; python manage.py test

0 comments on commit add8e53

Please sign in to comment.