Skip to content

Merge pull request #860 from scap3yvt/859-bug-noise-and-blur-enhanced… #3

Merge pull request #860 from scap3yvt/859-bug-noise-and-blur-enhanced…

Merge pull request #860 from scap3yvt/859-bug-noise-and-blur-enhanced… #3

Workflow file for this run

name: Lint
on: [push, pull_request]
jobs:
black:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- name: Extract black version from setup.py
run: |
echo "BLACK_VERSION=$(python -c 'from setup import black_version; print(black_version)')" >> $GITHUB_ENV
- uses: psf/black@stable
with:
version: ${{ env.BLACK_VERSION }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install black==${{ env.BLACK_VERSION }}
- name: Run tests
run: |
python -m black --check .