24 lines
531 B
YAML
24 lines
531 B
YAML
name: Test Django
|
|
run-name: ${{ gitea.actor }} testing
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
migrate:
|
|
name: Test migration
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Set up Python 3.11
|
|
run: |
|
|
apt update -y
|
|
apt install -yqq python3 python3-pip
|
|
- name: Install Dependencies
|
|
run: |
|
|
python3 -m pip install --upgrade pip
|
|
pip3 install -r requirements.txt
|
|
- name: Run migration
|
|
run: |
|
|
python3 manage.py migrate
|
|
|