@@ -5,17 +5,20 @@ on: [push]
55jobs :
66 build-test :
77 runs-on : ubuntu-latest
8+ strategy :
9+ matrix :
10+ python-version : ['3.9', '3.10', '3.11', '3.12', '3.13']
811
912 steps :
1013 - uses : actions/checkout@v4
11- - name : Set up Python 3.9
12- uses : actions/setup-python@v2
14+ - name : Set up Python ${{ matrix.python-version }}
15+ uses : actions/setup-python@v4
1316 with :
14- python-version : " 3.9 "
17+ python-version : ${{ matrix.python-version }}
1518 - name : Install dependencies
1619 run : |
1720 python -m pip install --upgrade pip
18- pip install poetry && poetry build
21+ pip install uv && uv build
1922
2023 # lint:
2124 # needs: build-test
@@ -30,28 +33,35 @@ jobs:
3033 code-quality :
3134 needs : build-test
3235 runs-on : ubuntu-latest
36+ strategy :
37+ matrix :
38+ python-version : ['3.9', '3.10', '3.11', '3.12', '3.13']
3339 steps :
3440 - uses : actions/checkout@v4
35- - name : Set up Python 3.9
36- uses : actions/setup-python@v2
41+ - name : Set up Python ${{ matrix.python-version }}
42+ uses : actions/setup-python@v4
3743 with :
38- python-version : " 3.9 "
44+ python-version : ${{ matrix.python-version }}
3945
4046 - name : Install dependencies
4147 run : |
4248 python -m pip install --upgrade pip
43- pip install poetry && poetry install
44- - name : Lint with flake8
49+ pip install uv && uv sync --all-extras
50+ - name : Lint with ruff
4551 run : |
4652 # stop the build if there are Python syntax errors or undefined names
47- poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
48- # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
49- poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
53+ uv run ruff check --select=E9,F63,F7,F82 --statistics
54+ # Run full ruff linting
55+ uv run ruff check --statistics
56+
57+ - name : Check formatting with ruff
58+ run : |
59+ uv run ruff format --check
5060
5161 - name : Security Analysis with bandit
5262 run : |
5363 mkdir ci-logs
54- poetry run bandit -r -lll -f txt -o ci-logs/bandit.log ./openodia ./tests
64+ uv run bandit -r -lll -f txt -o ci-logs/bandit.log ./openodia ./tests
5565
5666 - name : Archive bandit report
5767 uses : actions/upload-artifact@v4
0 commit comments