mlops-architecture/.gitea/workflows/ci.yaml

31 lines
558 B
YAML

name: CI - Lint & Test
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install ruff pytest
- name: Lint
run: ruff check .
- name: Test
run: pytest tests/ -v