Skip to content

Commit

Permalink
Defines env variables for superuser account
Browse files Browse the repository at this point in the history
  • Loading branch information
djperrefort committed Jul 20, 2024
1 parent 039a13a commit c6e067a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: 🤖 Test
on:
workflow_call:

env:
DJANGO_SUPERUSER_USERNAME: 'admin'
DJANGO_SUPERUSER_EMAIL: '[email protected]'
DJANGO_SUPERUSER_PASSWORD: 'admin'

jobs:
unit-tests:
name: Unit Tests
Expand All @@ -11,13 +16,18 @@ jobs:
services:
api:
image: ghcr.io/pitt-crc/keystone-api:latest
ports:
- 8000:8000
env:
DJANGO_SUPERUSER_USERNAME: ${{ env.DJANGO_SUPERUSER_USERNAME }}
DJANGO_SUPERUSER_EMAIL: ${{ env.DJANGO_SUPERUSER_EMAIL }}
DJANGO_SUPERUSER_PASSWORD: ${{ env.DJANGO_SUPERUSER_PASSWORD }}

strategy:
fail-fast: false
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
ports:
- 8000:8000

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down

0 comments on commit c6e067a

Please sign in to comment.