@@ -13,43 +13,38 @@ jobs:
1313 matrix :
1414 python-version : ["3.11"]
1515 steps :
16- - uses : actions/checkout@v4
16+ - uses : actions/checkout@v6
1717 with :
1818 fetch-depth : 0
1919 - uses : azure/setup-helm@v4.2.0
2020 with :
2121 version : " latest"
2222 id : install
23- - name : Set up Python
24- uses : actions /setup-python@v5
23+ - name : Install uv and set the Python version
24+ uses : astral-sh /setup-uv@v7
2525 with :
2626 python-version : ${{ matrix.python-version }}
27- cache : " pip "
27+ enable- cache : true
2828 - name : Get changed python files
2929 id : changed-files
3030 uses : tj-actions/changed-files@v46
3131 with :
3232 files : |
3333 ${{ inputs.path }}
3434 - name : Install dependencies
35- run : |
36- pip install --upgrade pip wheel
37- pip install .[dev]
35+ run : uv sync --frozen --extra dev
3836 - name : check black formatting
39- run : |
40- black --check --diff --config ./pyproject.toml .
37+ run : uv run black --check --diff --config ./pyproject.toml .
4138 - name : lint helm charts
42- run : |
43- helm lint --strict ./charts/logprep
39+ run : helm lint --strict ./charts/logprep
4440 - name : lint changed and added files
4541 if : steps.changed-files.outputs.all_changed_files
46- run : |
47- pylint ${{ steps.changed-files.outputs.all_changed_files }}
42+ run : uv run pylint ${{ steps.changed-files.outputs.all_changed_files }}
4843 - name : mypy type checking
4944 if : steps.changed-files.outputs.all_changed_files
50- run : mypy ${{ steps.changed-files.outputs.all_changed_files }}
45+ run : uv run mypy --follow-imports=skip ${{ steps.changed-files.outputs.all_changed_files }}
5146 - name : Run tests and collect coverage
52- run : pytest tests/unit --cov=logprep --cov-report=xml
47+ run : uv run pytest tests/unit --cov=logprep --cov-report=xml
5348 - name : Upload coverage reports to Codecov with GitHub Action
5449 uses : codecov/codecov-action@v5
5550 with :
0 commit comments