@@ -16,20 +16,18 @@ jobs:
1616
1717    steps :
1818      - uses : actions/checkout@v3 
19-       - name : Set up Python ${{ matrix.python }} 
20-         uses : actions /setup-python@v4 
19+       - name : Install uv 
20+         uses : astral-sh /setup-uv@v3 
2121        with :
22-           python-version : ${{ matrix.python }} 
22+           enable-cache : true 
23+       - name : Set up Python ${{ matrix.python }} 
24+         run : uv python install ${{ matrix.python }} 
2325      - name : Install dependencies 
2426        run : | 
25-           python${{ matrix.python }} -m venv venv 
26-           source venv/bin/activate  
27-           pip3 install --upgrade pip  
28-           python${{ matrix.python }} -m pip install -e ".[dev]" 
27+           uv sync --python ${{ matrix.python }} 
2928name : Test with pytest & coverage 
3029        run : | 
31-           source venv/bin/activate 
32-           python${{ matrix.python }} -m pytest --cov=src --cov-report term --cov-report html --cov-report xml -vv 
30+           uv run --python ${{ matrix.python }} pytest --cov=src --cov-report term --cov-report html --cov-report xml -vv 
3331#  TODO requires activation for this repository on codecov website first.
3432      #  - name: Upload coverage to Codecov
3533      #    uses: codecov/codecov-action@v3
@@ -38,44 +36,39 @@ jobs:
3836    runs-on : ubuntu-latest 
3937    steps :
4038      - uses : actions/checkout@v3 
41-       - name : Set up Python 
42-         uses : actions /setup-python@v4 
39+       - name : Install uv 
40+         uses : astral-sh /setup-uv@v3 
4341        with :
44-           python-version : " 3.10" 
42+           enable-cache : true 
43+       - name : Set up Python 
44+         run : uv python install 3.10 
4545      - name : Install dependencies 
4646        run : | 
47-           python3.10 -m venv venv 
48-           source venv/bin/activate  
49-           pip3 install --upgrade pip  
50-           python3.10 -m pip install -e ".[dev]" 
47+           uv sync 
5148name : Lint with ruff 
5249        run : | 
53-           source venv/bin/activate 
54-           python3.10 -m ruff check . 
50+           uv run ruff check . 
5551name : Lint with mypy 
5652        run : | 
57-           source venv/bin/activate 
58-           python3.10 -m mypy . 
53+           uv run mypy . 
5954
6055docs :
6156    runs-on : ubuntu-latest 
6257    steps :
6358      - uses : actions/checkout@v3 
64-       - name : Set up Python 
65-         uses : actions /setup-python@v4 
59+       - name : Install uv 
60+         uses : astral-sh /setup-uv@v3 
6661        with :
67-           python-version : " 3.10" 
62+           enable-cache : true 
63+       - name : Set up Python 
64+         run : uv python install 3.10 
6865      - name : Install dependencies 
6966        run : | 
70-           python3.10 -m venv venv 
71-           source venv/bin/activate  
72-           pip3 install --upgrade pip  
73-           python3.10 -m pip install -e ".[dev]" 
67+           uv sync 
7468name : Generate Reference Docs 
7569        run : | 
76-           source venv/bin/activate 
7770          mkdir ./docs/build 
78-           ./docs/generate.sh --out=./docs/build/ --pypath=src/ 
71+           uv run  ./docs/generate.sh --out=./docs/build/ --pypath=src/ 
7972uses : actions/upload-artifact@v4 
8073        name : Upload Docs Preview 
8174        with :
@@ -86,17 +79,15 @@ jobs:
8679    runs-on : ubuntu-latest 
8780    steps :
8881      - uses : actions/checkout@v3 
89-       - name : Set up Python 
90-         uses : actions /setup-python@v4 
82+       - name : Install uv 
83+         uses : astral-sh /setup-uv@v3 
9184        with :
92-           python-version : " 3.10" 
85+           enable-cache : true 
86+       - name : Set up Python 
87+         run : uv python install 3.10 
9388      - name : Install dependencies 
9489        run : | 
95-           python3.10 -m venv venv 
96-           source venv/bin/activate  
97-           pip3 install --upgrade pip  
98-           python3.10 -m pip install -e ".[dev]" 
90+           uv sync 
9991name : Check Formatting with ruff 
10092        run : | 
101-           source venv/bin/activate 
102-           python3.10 -m ruff format --check . 
93+           uv run ruff format --check . 
0 commit comments