Skip to content

Merge branch 'feature/new-app-permission' into staging #1972

Merge branch 'feature/new-app-permission' into staging

Merge branch 'feature/new-app-permission' into staging #1972

Workflow file for this run

name: CI
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
env:
SECRET_KEY: "SK"
ALLOWED_HOSTS: "*,"
DJANGO_SETTINGS_MODULE: "nexus.settings"
jobs:
container-job:
runs-on: ubuntu-latest
container: python:3.10-slim
services:
postgres:
image: postgres:16
env:
DEFAULT_DATABASE: postgres://nexus:nexus@postgres:5432/nexus
POSTGRES_HOST: postgres
POSTGRES_USER: nexus
POSTGRES_DATABASE: nexus
POSTGRES_PASSWORD: nexus
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis:latest
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Setup Python
run: |
pip install poetry
poetry config virtualenvs.create false --local
poetry install
python contrib/gen_env.py
- name: Run Django Unittests with Coverage
run: coverage run manage.py test --verbosity=2 --noinput
- name: Coverage Report
run: coverage report
- name: Flake8
run: flake8 nexus/