Skip to content

[Snyk] Security upgrade black from 22.8.0 to 24.3.0 #2000

[Snyk] Security upgrade black from 22.8.0 to 24.3.0

[Snyk] Security upgrade black from 22.8.0 to 24.3.0 #2000

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python application
on:
push:
branches:
- main
- develop
- release/*
pull_request:
branches:
- main
- develop
- release/*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
pip install --upgrade pip
pip install wheel flake8 pytest
if [ -f requirements/dev.txt ]; then pip install -r requirements/dev.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 chaos_genius --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings.
flake8 chaos_genius --count --exit-zero --statistics
- name: Test with pytest
run: |
pytest
- name: Check diverged migrations
run: |
./scripts/check_diverged_migrations.sh