Skip to content

Merge pull request #496 from allegro/dependabot/pip/vaas/requirements… #423

Merge pull request #496 from allegro/dependabot/pip/vaas/requirements…

Merge pull request #496 from allegro/dependabot/pip/vaas/requirements… #423

Workflow file for this run

name: Django CI/CD Workflow
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip coverage
pip install -r ./vaas/requirements/test.txt
- name: Lint with flake8
working-directory: vaas
run: |
flake8 vaas/
- name: Test with coverage
working-directory: vaas
run: |
coverage run --rcfile=.coveragerc ./manage.py test
env:
DJANGO_SETTINGS_MODULE: vaas.settings.test