Skip to content

Commit b174653

Browse files
committed
fix: github workflows use uv
1 parent 0b20ed0 commit b174653

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
max-line-length = 99
33
select: E,W,F,C,N
44
exclude:
5-
venv
5+
.venv
66
.git
77
build
88
dist

.github/workflows/ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,23 @@ jobs:
2121

2222
- name: Set up Python
2323
uses: actions/setup-python@v4
24+
with:
25+
python-version: '3.12'
26+
27+
- name: Install uv
28+
run: pip install uv
29+
30+
- name: Create uv virtualenv
31+
run: uv venv
2432

2533
- name: Install dependencies for testing
2634
run: |
27-
pip install -r requirements-dev.txt
35+
source .venv/bin/activate
36+
uv pip install ".[dev]"
2837
2938
- name: Run tests
3039
run: |
40+
source .venv/bin/activate
3141
./run_tests
3242
3343

0 commit comments

Comments
 (0)