From 66a98463cd8992fb0902eda29b4dca06c6c910bc Mon Sep 17 00:00:00 2001 From: Guy Ziv Date: Wed, 24 Jun 2026 11:38:37 +0300 Subject: [PATCH] Create test.yml --- .github/workflows/test.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..616e035 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,30 @@ +name: test + +on: + pull_request: + push: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -e ".[dev]" + + - name: Run linter (ruff) + run: | + ruff check abevalflow/ scripts/ tests/ + ruff format --check abevalflow/ scripts/ tests/ + + - name: Run tests + run: pytest tests/ -v --tb=short