-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (33 loc) · 1.04 KB
/
IntegrationCI.yml
File metadata and controls
35 lines (33 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Integration Test
on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main", "develop" ]
workflow_dispatch:
jobs:
integration_tests:
name: Integration Test
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8.0
env:
MYSQL_ROOT_PASSWORD: ${{ secrets.DATABASE_PASS }}
MYSQL_DATABASE: answerking_app
ports: [ '3306:3306' ]
env:
DATABASE_NAME: answerking_app
DATABASE_USER: ${{ secrets.DATABASE_USER }}
DATABASE_PASS: ${{ secrets.DATABASE_PASS }}
DATABASE_HOST: 127.0.0.1
DATABASE_PORT: 3306
DATABASE_ENGINE: django.db.backends.mysql
SECRET_KEY: ${{ secrets.SECRET_KEY }}
DJANGO_SETTINGS_MODULE: answerking.settings.development
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/dependencies
- name: Run Integration Tests
run: poetry run python manage.py test answerking_app.tests.test_integration