Skip to content

Merge pull request #21 from gm3dmo/debug-toolbar #28

Merge pull request #21 from gm3dmo/debug-toolbar

Merge pull request #21 from gm3dmo/debug-toolbar #28

Workflow file for this run

name: cmp-django-base-build
env:
SECRET_KEY: ${{ secrets.DJANGO_SECRET_KEY }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
permissions:
pull-requests: write
on:
workflow_call:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
core_base_build:
runs-on: ubuntu-latest
steps:
- name: Checkout CMP code
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install flake8
run: |
pip install flake8
- name: Install black
run: |
pip install black
- name: Install requirements
run: |
pip install -r requirements.txt
- name: Run tests
run: |
python manage.py test
- name: Run test with coverage report
run: |
pytest
- name: CMP Pytest Coverage Report
uses: orgoro/[email protected]
with:
coverageFile: coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}
- name: Artifact Upload coverage report
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: |
coverage.xml