Skip to content

Testing object onwer #53

Testing object onwer

Testing object onwer #53

Workflow file for this run

name: Verify Django is working
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-22.04
strategy:
max-parallel: 4
matrix:
python-version: [3.11.8]
services:
db:
image: postgres
env:
POSTGRES_DB: api-service
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
DEBUG: ${{ secrets.DEBUG }}
DB_NAME: ${{ secrets.DB_NAME }}
DB_USER: ${{ secrets.DB_USER }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
DB_HOST: ${{ secrets.DB_HOST }}
DB_PORT: ${{ secrets.DB_PORT }}
OIDC_RP_CLIENT_ID: ${{ secrets.OIDC_RP_CLIENT_ID }}
OIDC_RP_CLIENT_SECRET: ${{ secrets.OIDC_RP_CLIENT_SECRET }}
OIDC_RP_SIGN_ALGO: ${{ secrets.OIDC_RP_SIGN_ALGO }}
OIDC_OP_USERINFO_ENDPOINT: ${{ secrets.OIDC_OP_USERINFO_ENDPOINT }}
OIDC_OP_JWKS_ENDPOINT: ${{ secrets.OIDC_OP_JWKS_ENDPOINT }}
OIDC_OP_AUTHORIZATION_ENDPOINT: ${{ secrets.OIDC_OP_AUTHORIZATION_ENDPOINT }}
OIDC_OP_TOKEN_ENDPOINT: ${{ secrets.OIDC_OP_TOKEN_ENDPOINT }}
AFT_API_KEY: ${{ secrets.AFT_API_KEY }}
AFT_PORT: ${{ secrets.AFT_PORT }}
AFT_SHORT_CODE: ${{ secrets.AFT_SHORT_CODE }}
AFT_USERNAME: ${{ secrets.AFT_USERNAME }}
run: |
python manage.py test