@@ -10,25 +10,31 @@ jobs:
1010 fail-fast : false
1111 matrix :
1212 os : [ubuntu-latest, windows-latest, macOS-latest]
13- python-version : ["3.9 "]
13+ python-version : ["3.10", "3.11", "3.12", "3.13 "]
1414 steps :
1515 - name : Checkout code
1616 uses : actions/checkout@v3
1717
18- - name : Set up Python ${{ matrix.python-version }}
19- uses : actions /setup-python@v4
18+ - name : Install uv
19+ uses : astral-sh /setup-uv@v3
2020 with :
21- python-version : ${{ matrix.python-version }}
22-
23- - name : Install pip-tools
24- run : pip install pip-tools
21+ # Install a specific version of uv.
22+ version : " 0.5.4"
2523
2624 - name : Generate requirements file
27- run : pip- compile --extra web --output-file requirements-${{ matrix.os }}-${{ matrix.python-version }}.txt pyproject.toml
25+ run : uv pip compile --all-extras pyproject.toml -o requirements-${{ matrix.os }}-${{ matrix.python-version }}.txt
2826
2927 - name : Upload requirements file
30- uses : actions/upload-artifact@v3
28+ uses : actions/upload-artifact@v4
3129 with :
32- name : requirements
30+ name : req-artifact-${{ matrix.os }}-${{ matrix.python-version }}
3331 path : requirements-${{ matrix.os }}-${{ matrix.python-version }}.txt
34-
32+ merge :
33+ runs-on : ubuntu-latest
34+ needs : generate-requirements
35+ steps :
36+ - name : Merge Artifacts
37+ uses : actions/upload-artifact/merge@v4
38+ with :
39+ name : all-requirements
40+ pattern : req-artifact-*
0 commit comments