Skip to content

Commit b0f9e59

Browse files
committed
fix
1 parent fe13905 commit b0f9e59

File tree

2 files changed

+17
-229
lines changed

2 files changed

+17
-229
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,16 @@ jobs:
1818
with:
1919
python-version: 3.11.11
2020

21-
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1
2223
with:
23-
path: ~/.cache/pip
24-
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
25-
restore-keys: |
26-
${{ runner.os }}-pip-
24+
enable-cache: true
25+
pyproject-file: 'pyproject.toml'
2726

2827
- name: Install dev dependencies
28+
shell: bash
2929
run: |
30-
python -m pip install -e .[dev]
31-
if: steps.cache.outputs.cache-hit != 'true'
30+
UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --dev
3231
3332
- name: Check formatting with ruff
3433
run: |
@@ -55,9 +54,16 @@ jobs:
5554
with:
5655
python-version: ${{ matrix.python-version }}
5756

58-
- name: Install requirements.txt dependencies with pip
57+
- name: Install uv
58+
uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1
59+
with:
60+
enable-cache: true
61+
pyproject-file: 'pyproject.toml'
62+
63+
- name: Install test dependencies
64+
shell: bash
5965
run: |
60-
python -m pip install -e .[test]
66+
UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --test
6167
6268
- name: Run posthog tests
6369
run: |

0 commit comments

Comments
 (0)