From 260c05b0d69afc4ee90d4241a80387861f96d142 Mon Sep 17 00:00:00 2001 From: Jason Date: Sun, 16 Jun 2024 17:43:41 -0400 Subject: [PATCH] Update actions --- .github/workflows/autoblack.yml | 17 ++++++++++++----- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/lint.yml | 5 ++++- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/autoblack.yml b/.github/workflows/autoblack.yml index 8e367fe..7c78687 100644 --- a/.github/workflows/autoblack.yml +++ b/.github/workflows/autoblack.yml @@ -3,7 +3,7 @@ # Othewrwise, Black is run and its changes are committed back to the incoming pull request. # https://github.com/cclauss/autoblack -name: autoblack +name: fmt on: push: branches: ["develop"] @@ -11,11 +11,11 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: Set up Python 3.7 - uses: actions/setup-python@v1 + - uses: actions/checkout@v4 + - name: Set up Python 3.10 + uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: 3.10 - name: Install Black run: pip install black - name: Run black --check . @@ -30,3 +30,10 @@ jobs: git checkout $GITHUB_HEAD_REF git commit -am "fixup: Format Python code with Black" git push origin HEAD:develop + + - uses: isort/isort-action@v1 + with: + requirement-files: "requirements.txt" + + + diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index ec78b1a..0f392ff 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -39,7 +39,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f95531f..d758192 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,7 +6,10 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: psf/black@stable with: options: "--line-length 101" + - uses: isort/isort-action@v1 + with: + requirement-files: "requirements.txt"