π DOCS: Update #46
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: βοΈ 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 |