PR for expected branch

I turned that off (want to have only PR build) and also added only to .travis.yml , but still have two builds, but now branch builds just in expecting stage. In web UI Travis - no more builds for branch created.

enter image description here

branches:
  only:
  - master

language: python
os: linux
dist: xenial

jobs:
  include:
  - name: pytest
    python:
      - 3.7
    install:
      - pip install -U pip
      - pip install -U pytest
      - pip install -U PyYAML
      - pip install -U Cerberus
    script:
      - pytest -vvs

any help aprecciated thanks

You can filter your jobs using conditional checks like:

    - stage: build
      name: "build pull request"
      if: type IN (pull_request)
      install:
            echo 'Building pull request';
1 Like