From 7e376c37792c25296085a07bbe0265cf63e431f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6ksel=20Verep?= Date: Sun, 26 Apr 2026 20:19:15 +0300 Subject: [PATCH] ci: add pytest + pre-commit workflow --- .github/workflows/test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..7432dba --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +name: test + +on: + push: + branches: [main] + pull_request: + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.11" + cache: pip + + - name: Install + run: pip install -e ".[dev]" + + - name: Format + lint + run: pre-commit run --all-files --show-diff-on-failure + + - name: Tests + run: pytest -q