From c73a9b183ff0aa2ab2ac8c7c52b61ac6081b6eed Mon Sep 17 00:00:00 2001 From: Paul Ganssle Date: Sat, 3 Dec 2022 14:34:01 -0500 Subject: Give darker its own job --- .github/workflows/validate.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 5a4d122..cf0cdcb 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -81,8 +81,6 @@ jobs: toxenv: ["docs", "tz", "precommit"] env: TOXENV: ${{ matrix.toxenv }} - PRE_COMMIT_FROM_REF: ${{ github.base_ref }} - PRE_COMMIT_TO_REF: "HEAD" steps: - uses: actions/checkout@v3 @@ -106,6 +104,19 @@ jobs: - name: Run action run: tox + darker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: actions/setup-python@v4 + - uses: akaihola/darker@1.5.1 + with: + options: "--check --diff --color --isort" + src: "." + version: "1.5.1" + build-dist: runs-on: ubuntu-latest steps: -- cgit v1.2.1