@@ -13,40 +13,43 @@ jobs:
13
13
strategy :
14
14
matrix :
15
15
os : [ubuntu-latest]
16
- python-version : [3.7, 3.8, 3. 9, '3.10', '3.11', '3.12']
16
+ python-version : [3.9, '3.10', '3.11', '3.12', '3.13 ']
17
17
18
18
steps :
19
19
- uses : actions/checkout@v4
20
- - name : Set up Python ${{ matrix.python-version }}
21
- uses : actions/setup-python@v5
20
+
21
+ - name : Install the latest version of uv
22
+ uses : astral-sh/setup-uv@v3
22
23
with :
23
- python- version : ${{ matrix.python-version }}
24
- cache : " pip "
25
- cache-dependency-path : setup.py
24
+ version : " latest "
25
+ enable- cache : true
26
+ cache-dependency-glob : " **/ setup.py"
26
27
27
28
- name : Set up Java
28
29
uses : actions/setup-java@v4
29
30
with :
30
31
distribution : " temurin"
31
- java-version : 11
32
+ java-version : 17
33
+
34
+ - name : Install python
35
+ run : uv venv --python ${{ matrix.python-version }}
32
36
33
37
- name : Install dependencies
34
38
run : |
35
- python -m pip install --upgrade pip
36
- pip install pycodestyle unittest-xml-reporting
37
- pip install .
39
+ uv pip install pycodestyle unittest-xml-reporting
40
+ uv pip install .
38
41
39
42
- name : Test
40
- run : python -m xmlrunner discover -v -o test-results/test/
43
+ run : uv run -m xmlrunner discover -v -o test-results/test/
41
44
42
45
- name : Pycodestyle
43
- run : pycodestyle cr8
46
+ run : uv run -m pycodestyle cr8
44
47
45
48
- name : Upload results to wacklig
46
49
env :
47
50
WACKLIG_TOKEN : ${{ secrets.WACKLIG_TOKEN }}
48
51
run : |
49
- curl -s https://raw.githubusercontent.com/pipifein/wacklig-uploader/master/wacklig.py | python - --token "$WACKLIG_TOKEN" || echo "Upload to wacklig failed"
52
+ curl -s https://raw.githubusercontent.com/pipifein/wacklig-uploader/master/wacklig.py | uv run - --token "$WACKLIG_TOKEN" || echo "Upload to wacklig failed"
50
53
51
54
publish :
52
55
name : Build & publish package to pypi
0 commit comments