Skip to content

Bump django from 4.2.1 to 4.2.4 in /requirements #838

Bump django from 4.2.1 to 4.2.4 in /requirements

Bump django from 4.2.1 to 4.2.4 in /requirements #838

Workflow file for this run

name: Check & Test
on:
push:
branches:
- develop
- main
- master
- release/*
pull_request:
merge_group:
jobs:
check-migrations:
name: Check Migrations
runs-on: ubuntu-latest
env:
DJANGO_SETTINGS_MODULE: volunteer_planner.settings.tests
steps:
# Checkout the GitHub repo
- uses: actions/checkout@v2
# Install Python 3.11.0
- name: Set up Python 3.11.0
uses: actions/setup-python@v2
with:
python-version: "3.11.0"
cache: "pip"
cache-dependency-path: 'requirements/base.txt'
# Pip install project dependencies
- name: Install python packages with pip
run: |
python -m pip install --upgrade pip
pip install -r requirements/base.txt
# Check for missing Django migrations
- name: Check for missing Django migrations
run: python manage.py makemigrations --check
check-messages:
name: Check Translations
runs-on: ubuntu-latest
env:
DJANGO_SETTINGS_MODULE: volunteer_planner.settings.tests
steps:
# Checkout the GitHub repo
- uses: actions/checkout@v2
# Install Python 3.11.0
- name: Set up Python 3.11.0
uses: actions/setup-python@v2
with:
python-version: "3.11.0"
cache: "pip"
cache-dependency-path: 'requirements/base.txt'
# apt install system dependencies
- name: Install apt packages
run: |
sudo apt install -y gettext
# Pip install project dependencies
- name: Install python packages with pip
run: |
python -m pip install --upgrade pip
pip install -r requirements/base.txt
# makemessages
- name: Run Django management command `makemessages`
run: ./scripts/makemessages.sh --all
# checkdiffs
- name: Check for uncommitted changes (in .po files)
run: ./scripts/checkdiffs.sh
# Check for fuzzy translations in .po files
- name: Check for fuzzy translations in .po files
run: ./scripts/checkfuzzy.sh
# compilemessages
- name: Run Django management command `compilemessages`
run: ./scripts/compilemessages.sh
black:
name: Check Code Style (black)
runs-on: ubuntu-latest
env:
DJANGO_SETTINGS_MODULE: volunteer_planner.settings.tests
steps:
# Checkout the GitHub repo
- uses: actions/checkout@v2
# Run black
- uses: psf/black@stable
with:
options: "--check --target-version py39"
flake8:
runs-on: ubuntu-latest
name: Lint with flake8
steps:
- name: Check out source repository
uses: actions/checkout@v2
# Install Python 3.11.0
- name: Set up Python 3.11.0
uses: actions/setup-python@v2
with:
python-version: "3.11.0"
cache: "pip"
cache-dependency-path: 'requirements/base.txt'
# Pip install project dependencies
- name: Install python packages with pip
run: |
python -m pip install --upgrade pip
pip install -r requirements/flake8.txt
# Run flake8
- name: Run flake8
run: flake8
pytest:
name: Unit Tests
needs:
- check-migrations
- check-messages
# Run on a Ubuntu VM
runs-on: ubuntu-latest
env:
DJANGO_SETTINGS_MODULE: volunteer_planner.settings.tests
steps:
# Checkout the GitHub repo
- uses: actions/checkout@v2
# Install Python 3.11.0
- name: Set up Python 3.11.0
uses: actions/setup-python@v2
with:
python-version: "3.11.0"
cache: "pip"
cache-dependency-path: 'requirements/base.txt'
# Pip install project dependencies
- name: Install python packages with pip
run: |
python -m pip install --upgrade pip
pip install -r requirements/tests.txt
# Run pytest
- name: Test with pytest
run: pytest -vv