From f0a5ed91218e26c12dc5449b90857a437aab7a37 Mon Sep 17 00:00:00 2001 From: Mohsin Mukhtiar Lashari <160683327+president-xd@users.noreply.github.com> Date: Wed, 21 Aug 2024 04:46:06 +0500 Subject: [PATCH] Update python-app.yml --- .github/workflows/python-app.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 3ce1502..4b49f3a 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -1,29 +1,31 @@ -name: Python application +name: Python CI -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: + branches: + - main jobs: build: runs-on: ubuntu-latest steps: - - name: Check out code + - name: Checkout code uses: actions/checkout@v3 - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.8' - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r Cryptix/requirements.txt + pip install flake8 - - name: Lint with flake8 + - name: Lint code run: | - flake8 - - - name: Test with pytest - run: | - pytest + flake8 . --ignore=E501,E302,E303,E203,E741,E275,E225,W605,F401