@@ -25,40 +25,29 @@ jobs:
2525 steps :
2626 - uses : actions/checkout@v4
2727
28- - uses : actions/setup-python@v4
28+ - name : Install uv
29+ uses : astral-sh/setup-uv@v5
2930 with :
30- python-version : ${{ matrix.python_version }}
31-
32- - name : Install Poetry
33- run : python -m pip install poetry poetry-dynamic-versioning
31+ enable-cache : true
32+ cache-dependency-glob : " uv.lock"
3433
35- - uses : actions/cache@v3
36- name : Cache Poetry dependencies
34+ - uses : actions/setup-python@v5
3735 with :
38- path : |
39- ~/.cache
40- ~/.local/share/virtualenvs/
41- key : ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
42- restore-keys : |
43- ${{ runner.os }}-poetry-
44-
45- - name : Get dependencies
46- run : poetry install
36+ python-version : ${{ matrix.python_version }}
4737
4838 - name : Lint
49- run : |
50- # stop the build if there are Python syntax errors or undefined names
51- poetry run flake8
52- # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
53- poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
39+ uses : astral-sh/ruff-action@v3
40+
41+ - name : Check format
42+ run : ruff format --check
5443
5544 - name : Test in staging
5645 env :
5746 SDC_MONITOR_TOKEN : ${{ secrets.STAGING_MONITOR_API_TOKEN }}
5847 SDC_SECURE_TOKEN : ${{ secrets.STAGING_SECURE_API_TOKEN }}
5948 SDC_MONITOR_URL : " https://app-staging.sysdigcloud.com"
6049 SDC_SECURE_URL : " https://secure-staging.sysdig.com"
61- run : poetry run mamba -f documentation -t integration
50+ run : uv run mamba -f documentation -t integration
6251
6352 test-release :
6453 runs-on : ubuntu-latest
@@ -81,14 +70,12 @@ jobs:
8170 run : git-chglog -c .github/git-chglog/config.yml -o RELEASE_CHANGELOG.md $(git describe --tags $(git rev-list --tags --max-count=1))
8271
8372 - name : Set up Python
84- uses : actions/setup-python@v4
73+ uses : actions/setup-python@v5
8574 with :
86- python-version : 3.8
75+ python-version : 3.10
8776
88- - name : Install dependencies
89- run : |
90- python -m pip install --upgrade pip
91- pip install poetry poetry-dynamic-versioning
77+ - name : Install uv
78+ uses : astral-sh/setup-uv@v5
9279
9380 - name : Build
94- run : poetry build
81+ run : uv build
0 commit comments