chore: Only run GitHub workflows when needed
@@ -5,10 +5,18 @@ on:
branches:
- main
- dev
+ paths:
+ - 'backend/**'
+ - 'pyproject.toml'
+ - 'uv.lock'
pull_request:
jobs:
build:
@@ -17,7 +25,9 @@ jobs:
strategy:
matrix:
- python-version: [3.11]
+ python-version:
+ - 3.11.x
+ - 3.12.x
steps:
- uses: actions/checkout@v4
@@ -25,7 +35,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
- python-version: ${{ matrix.python-version }}
+ python-version: '${{ matrix.python-version }}'
- name: Install dependencies
run: |
+ paths-ignore:
@@ -21,7 +29,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
- node-version: '22' # Or specify any other version you want to use
+ node-version: '22'
- name: Install Dependencies
run: npm install