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