Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
quality:
|
||||
name: Quality Checks
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install uv
|
||||
run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
|
||||
- name: Install Python from .python-version
|
||||
run: $HOME/.local/bin/uv python install
|
||||
|
||||
- name: Sync development dependencies
|
||||
run: $HOME/.local/bin/uv sync --group dev
|
||||
|
||||
- name: Run quality checks
|
||||
run: PATH="$HOME/.local/bin:$PATH" make ci-check
|
||||
|
||||
tests:
|
||||
name: Test Suite
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install uv
|
||||
run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
|
||||
- name: Install Python from .python-version
|
||||
run: $HOME/.local/bin/uv python install
|
||||
|
||||
- name: Sync development dependencies
|
||||
run: $HOME/.local/bin/uv sync --group dev
|
||||
|
||||
- name: Run tests
|
||||
run: PATH="$HOME/.local/bin:$PATH" make test
|
||||
Reference in New Issue
Block a user