Skip to content

Commit

Permalink
workflow: modify run conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Nov 11, 2024
1 parent 4220ef5 commit 5638995
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Pytest Checks

on: [push, pull_request]
on:
push:
branches:
- develop
pull_request:
branches:
- main
- develop

jobs:
test:
Expand All @@ -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

0 comments on commit 5638995

Please sign in to comment.