PLUTON-19231 | Correctly make self.domain_mappings a list (#520) #477
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |