diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 68b1c645..54431cba 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -1,6 +1,13 @@ name: Pytest Checks -on: [push, pull_request] +on: + push: + branches: + - develop + pull_request: + branches: + - main + - develop jobs: test: @@ -9,15 +16,15 @@ jobs: matrix: python-version: ["3.9", "3.10", "3.11", "3.12"] steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - pip install poetry - poetry install --no-interaction - - name: Run Tests - run: | - poetry run pytest + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + pip install poetry + poetry install --no-interaction + - name: Run Tests + run: | + poetry run pytest