From c8f2457b93a24c5951db87a0c1ba4424222f11a5 Mon Sep 17 00:00:00 2001 From: Nate Prewitt Date: Tue, 7 Jun 2022 22:13:08 -0600 Subject: [PATCH 1/2] Add GitHub action to automate linting --- .github/workflows/lint.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000000..aa3bb2209b --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,18 @@ +name: Lint code + +on: + push: + pull_request: + +jobs: + lint: + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.10 + uses: actions/setup-python@v2 + with: + python-version: "3.10" + - name: Run pre-commit + uses: pre-commit/action@v2.0.0 From 3b2ebadb9d65fd152debecc5beecea53f1375cbd Mon Sep 17 00:00:00 2001 From: Nate Prewitt Date: Wed, 8 Jun 2022 12:59:29 -0600 Subject: [PATCH 2/2] Bump actions to v3 --- .github/workflows/lint.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index aa3bb2209b..c69aa7fccb 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,10 +9,8 @@ jobs: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.10 - uses: actions/setup-python@v2 - with: - python-version: "3.10" + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 - name: Run pre-commit - uses: pre-commit/action@v2.0.0 + uses: pre-commit/action@v3.0.0