diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d11df938..e696b497 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,13 +17,25 @@ jobs: - name: uses: actions/checkout@v3 - - name: Set up Python 3.10.5 + - name: Set up Python 3.10.12 uses: actions/setup-python@v3 with: - python-version: "3.10.5" + python-version: "3.10.12" - name: Install dependencies run: python -m pip install ".[test]" - name: Test with pytest run: python -m pytest + + linter_name: + name: Run Black formatter + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Run Black formatter + uses: rickstaa/action-black@v1 + with: + black_args: ". --check" diff --git a/pyproject.toml b/pyproject.toml index 5f2ed86c..96497658 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ release = [ ] test = [ - "pytest", + "pytest==7.4.4", "pytest-black", "pytest-cases", "pytest-cov",