@@ -8,30 +8,31 @@ permissions:
88 contents : read
99
1010jobs :
11- test :
11+ code-quality :
12+ name : " Code QA"
1213 strategy :
1314 fail-fast : false
1415 matrix :
1516 python-version : [3.12]
16- poetry-version : [1.8.3]
1717 os : [ubuntu-latest]
1818 runs-on : ${{ matrix.os }}
1919 steps :
2020 - uses : actions/checkout@v4
21- - name : Setup Python
22- uses : actions /setup-python@v3
21+ - name : Install uv
22+ uses : astral-sh /setup-uv@v5
2323 with :
24- python-version : ${{ matrix.python-version }}
25- - name : Setup Poetry
26- uses : abatilo/actions-poetry@v2.0.0
27- with :
28- poetry-version : ${{ matrix.poetry-version }}
24+ version : " 0.6.11"
25+ python-version-file : " pyproject.toml"
2926 - name : Install dependencies
30- run : poetry install --with dev
31- - name : Run tests
32- run : poetry run pytest --cov=entitled --cov-report=xml tests/
27+ run : uv sync --all-extras --dev
28+ - name : Run ruff linter
29+ run : uv run ruff check entitled
30+ - name : Run ruff formater
31+ run : uv run ruff format entitled
32+ - name : Run bandit
33+ run : uv run bandit entitled
3334
34- code-quality :
35+ test :
3536 strategy :
3637 fail-fast : false
3738 matrix :
@@ -41,21 +42,12 @@ jobs:
4142 runs-on : ${{ matrix.os }}
4243 steps :
4344 - uses : actions/checkout@v4
44- - name : Setup Python
45- uses : actions/setup-python@v3
46- with :
47- python-version : ${{ matrix.python-version }}
48- - name : Setup Poetry
49- uses : abatilo/actions-poetry@v2.0.0
45+ - name : Install uv
46+ uses : astral-sh/setup-uv@v5
5047 with :
51- poetry-version : ${{ matrix.poetry-version }}
48+ version : " 0.6.11"
49+ python-version-file : " pyproject.toml"
5250 - name : Install dependencies
53- run : poetry install --with dev
54- - name : Run black
55- run : poetry run black . --check
56- - name : Run isort
57- run : poetry run isort . --check-only
58- - name : Run pylint
59- run : poetry run pylint entitled
60- - name : Run bandit
61- run : poetry run bandit entitled
51+ run : uv sync --all-extras --dev
52+ - name : Run tests
53+ run : uv run pytest --cov=entitled --cov-report=xml tests/
0 commit comments