diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ab3457f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,40 @@ +name: CI + +on: + push: + branches: + - dev + - main + - master + - "agent/**" + pull_request: + workflow_dispatch: + +jobs: + test: + name: pytest + ruff + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + cache: pip + cache-dependency-path: pyproject.toml + + - name: Install project and dev tools + run: | + python -m pip install --upgrade pip + python -m pip install -e ".[dev]" + + - name: ruff check + run: ruff check . + + - name: ruff format + run: ruff format --check . + + - name: pytest + run: pytest -q