Skip to content

⬆️ CI/CD: Update #45

⬆️ CI/CD: Update

⬆️ CI/CD: Update #45

name: ⚙️ Workflow
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: ⚙️ Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: ⚙️ Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt --no-cache-dir
- name: ❤️️ Run Flake8
run: |
flake8 app/ modules/ --count --show-source --statistics --ignore=E501
- name: ❤️️ Run Tests
run: |
python manage.py test --settings app.settings.unittest