From f02306d69a4443fbe61493fcedb88284ac548092 Mon Sep 17 00:00:00 2001 From: Pieter Roggemans Date: Fri, 3 Nov 2023 11:50:20 +0100 Subject: [PATCH] Add linting action (#29) --- .github/workflows/tests.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..a238e6c --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,27 @@ +# This workflow will install Python dependencies and lint with a single version of Python +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Tests + +on: + push: + branches: [ main, 0.** ] + pull_request: + branches: [ main, 0.** ] + schedule: + - cron: "0 0 * * *" + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + Linting: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: "3.11" + - uses: pre-commit/action@v3.0.0 \ No newline at end of file