diff --git a/.github/workflows/backend-tests.yaml b/.github/workflows/backend-tests.yaml new file mode 100644 index 00000000..cd8149f7 --- /dev/null +++ b/.github/workflows/backend-tests.yaml @@ -0,0 +1,24 @@ +name: backend-tests + +on: + push: + branches: [main, development] + pull_request: + branches: [main, development] + workflow_dispatch: + +jobs: + test: + runs-on: self-hosted + steps: + - uses: actions/checkout@v4 + - name: Set up Python 3.11 + uses: actions/setup-python@v4 + with: + python-version: "3.11" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r ./backend/requirements.txt + - name: Execute tests + run: python ./backend/manage.py test