From 17cea2fa4c409f25711ccc76e343af4673b9d93b Mon Sep 17 00:00:00 2001 From: rstatkevych-arista Date: Wed, 12 Nov 2025 11:17:11 +0000 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..b1d53d9 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +name: Run checks on PR +on: + push: + branches: [ "trunk" ] + pull_request: + branches: [ "trunk" ] + +jobs: + Linter: + runs-on: ubuntu-latest + container: + image: python:3.12 + steps: + - uses: actions/checkout@v4 + - name: Prepare python environment + run: pip install flake8==7.3.0 + - name: Run linter + run: flake8 . + + Copyright: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run copyright checker + run: ./check_copyright.sh