diff --git a/.github/workflows/tests.yml b/.github/workflows/ci.yml similarity index 67% rename from .github/workflows/tests.yml rename to .github/workflows/ci.yml index a0c00bc..e78f948 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Tests +name: CI on: push: @@ -7,6 +7,23 @@ on: pull_request: jobs: + lint: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@v7 + - name: Set up Python + uses: actions/setup-python@v7 + with: + python-version: "3.15" + - name: Install dependencies + run: | + pip install -U pip + pip install -r requirements.txt + - name: Lint and check formatting + run: | + ruff check . + ruff format --check . test: runs-on: ubuntu-latest timeout-minutes: 5 @@ -17,6 +34,7 @@ jobs: - "3.12" - "3.13" - "3.14" + - "3.15" steps: - uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} @@ -27,10 +45,6 @@ jobs: run: | pip install -U pip pip install -r requirements.txt - - name: Lint and check formatting - run: | - ruff check . - ruff format --check . - name: Run all tests run: | pytest . -v