Skip to content

Bump black from 24.3.0 to 24.4.2 #230

Bump black from 24.3.0 to 24.4.2

Bump black from 24.3.0 to 24.4.2 #230

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
jobs:
msgcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: actions/checkout@v4
- run: sudo apt install -y gettext aspell libenchant-2-dev
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('lint-requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- run: python -m pip install -r lint-requirements.txt
- run: msgcheck -n stdimage/locale/*/LC_MESSAGES/*.po
lint:
strategy:
fail-fast: false
matrix:
lint-command:
- "bandit -r . -x ./tests"
- "black --check --diff ."
- "flake8 ."
- "isort --check-only --diff ."
- "pydocstyle ."
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('lint-requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- run: python -m pip install -r lint-requirements.txt
- run: ${{ matrix.lint-command }}
dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- run: sudo apt install gettext -y
- run: python -m pip install --upgrade pip build wheel twine readme-renderer
- run: python -m build --sdist --wheel
- run: python -m twine check dist/*
- uses: actions/upload-artifact@v3
with:
path: dist/*
pytest:
runs-on: ubuntu-latest
needs:
- lint
- msgcheck
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
django-version:
- "3.2"
- "4.0"
extra:
- "test"
- "test,progressbar"
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: sudo apt install gettext -y
- uses: actions/checkout@v4
- run: python -m pip install --upgrade pip codecov
- run: python -m pip install -e .[${{ matrix.extra }}]
if: ${{ matrix.extra }}
- run: python -m pip install django~=${{ matrix.django-version }}a
- run: python -m pytest
- run: codecov