File tree Expand file tree Collapse file tree 2 files changed +24
-8
lines changed Expand file tree Collapse file tree 2 files changed +24
-8
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,21 @@ jobs:
1616 with :
1717 python-version : " 3.11"
1818
19+ - name : Install uv
20+ uses : astral-sh/setup-uv@v6
21+ with :
22+ enable-cache : true
23+
1924 -
uses :
pre-commit/[email protected] 2025
21- - name : Install dependencies
22- run : cd cl && pip install -r recap_email/requirements.txt && pip install -r tests/requirements.txt
26+ - name : Install Python dependencies
27+ run : |
28+ cd cl
29+ uv venv -p ${{ matrix.python-version }}
30+ uv pip install -r recap_email/requirements.txt -r tests/requirements.txt
31+ source .venv/bin/activate
32+ echo "$VIRTUAL_ENV/bin" >> $GITHUB_PATH
33+ echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> $GITHUB_ENV
2334
2435 - name : mypy Static Type Checker
2536 run : mypy --ignore-missing-imports .
Original file line number Diff line number Diff line change @@ -20,14 +20,19 @@ jobs:
2020 with :
2121 python-version : ${{ matrix.python-version }}
2222
23- - name : Install dependencies
24- run : cd cl && pip install -r recap_email/requirements.txt && pip install -r tests/requirements.txt
23+ - name : Install uv
24+ uses : astral-sh/setup-uv@v6
25+ with :
26+ enable-cache : true
2527
26- - name : Activate venv
28+ - name : Install Python dependencies
2729 run : |
28- echo "VIRTUAL_ENV=$GITHUB_WORKSPACE/.venv" >> $GITHUB_ENV
29- echo "PYTHONPATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV
30- echo "$GITHUB_WORKSPACE/.venv/bin" >> $GITHUB_PATH
30+ cd cl
31+ uv venv -p ${{ matrix.python-version }}
32+ uv pip install -r recap_email/requirements.txt -r tests/requirements.txt
33+ source .venv/bin/activate
34+ echo "$VIRTUAL_ENV/bin" >> $GITHUB_PATH
35+ echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> $GITHUB_ENV
3136
3237 - name : Run tests
3338 run : cd cl && python -m pytest tests/unit -v
You can’t perform that action at this time.
0 commit comments