Skip to content

Use OrderedDict for r25 lists #45

Use OrderedDict for r25 lists

Use OrderedDict for r25 lists #45

Workflow file for this run

name: Django CI
env:
APP_NAME: mazevo_r25
COVERAGE_PYTHON_VERSION: 3.9
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.8, 3.9, 3.11]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 coverage
pip install -e .
- name: Setup Django Project
run: |
django-admin startproject testproj .
cp conf/urls.py testproj/
cp conf/settings.py testproj/
python manage.py migrate
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# uses settings in setup.cfg
flake8 . --count --statistics
- name: Run Tests
run: |
python -m compileall ${APP_NAME}/
python -Wd -m coverage run --source=${APP_NAME}/ manage.py test ${APP_NAME}
- name: Python Coverage Comment
if: matrix.python-version == env.COVERAGE_PYTHON_VERSION
uses: py-cov-action/[email protected]
with:
GITHUB_TOKEN: ${{ github.token }}