Skip to content

chore(repo): rework github pipelines (#126) #3

chore(repo): rework github pipelines (#126)

chore(repo): rework github pipelines (#126) #3

Workflow file for this run

name: CI ML Worker
on:
pull_request:
branches:
- main
paths:
- ".github/workflows/ci-ml-worker.yml"
- "ml-worker/**"
push:
branches:
- main
paths:
- ".github/workflows/ci-ml-worker.yml"
- "ml-worker/**"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-ml-worker-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ml-worker:
name: python-${{ matrix.python-version }}
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
python-version:
- "3.11"
- "3.12"
defaults:
run:
working-directory: ml-worker
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: |
ml-worker/pyproject.toml
ml-worker/requirements*.txt
- name: Install dependencies
run: python -m pip install -e ".[dev]"
- name: Run tests
run: pytest