Skip to content

Refactor code structure for improved readability and maintainability #10

Refactor code structure for improved readability and maintainability

Refactor code structure for improved readability and maintainability #10

Workflow file for this run

name: CI Checks
on: [push]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
autoformat:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Run Ruff format (check)
run: uvx ruff format --check .
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Ruff check
run: uvx ruff check .
static-type-checking:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Install Python
run: uv python install
- name: Install the project
run: uv sync --frozen --extra develop
- name: ty check
run: uv run --no-sync ty check
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install LAPACK and BLAS
run: |
sudo apt-get update
sudo apt-get install -y liblapack-dev libblas-dev
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Install Python
run: uv python install
- name: Install the project
run: uv sync --frozen --extra develop
- name: Pytest
run: uv run --no-sync pytest tests/