Refactor code structure for improved readability and maintainability #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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/ |