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

27 lines
522 B
YAML

name: CI - Lint & Test
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
lint-and-test:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Python & dependencies
run: |
apt-get update && apt-get install -y python3 python3-pip
pip3 install -r requirements.txt
pip3 install ruff pytest
- name: Lint
run: ruff check .
- name: Test
run: pytest tests/ -v