Skip to content

Commit 0aa50db

Browse files
committed
Use pyproject.toml in CI
1 parent 5436894 commit 0aa50db

File tree

2 files changed

+9
-18
lines changed

2 files changed

+9
-18
lines changed

.github/workflows/python-ci.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,10 @@ jobs:
3333
restore-keys: |
3434
${{ runner.os }}-uv-
3535
36-
- name: Create virtual environment
37-
run: uv venv
38-
39-
- name: Install project dependencies
40-
run: uv pip install -e .
41-
42-
- name: Install dev tools
43-
run: uv pip install ruff==0.3.4 mypy pytest types-requests types-beautifulsoup4 types-networkx
36+
- name: Create virtual environment and install project with dev dependencies
37+
run: |
38+
uv venv
39+
uv pip install -e ".[dev]"
4440
4541
- name: Debug environment
4642
run: |
@@ -49,8 +45,6 @@ jobs:
4945
python --version
5046
echo "Installed packages:"
5147
pip list
52-
echo "Virtual env bin directory contents:"
53-
ls -la .venv/bin/
5448
5549
- name: Check formatting
5650
run: |
@@ -94,14 +88,10 @@ jobs:
9488
restore-keys: |
9589
${{ runner.os }}-uv-
9690
97-
- name: Create virtual environment
98-
run: uv venv
99-
100-
- name: Install project
101-
run: uv pip install -e .
102-
103-
- name: Install pytest
104-
run: uv pip install pytest
91+
- name: Create virtual environment and install project with dev dependencies
92+
run: |
93+
uv venv
94+
uv pip install -e ".[dev]"
10595
10696
- name: Run tests
10797
run: |

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ dev = [
1919
"mypy>=1.13.0,<2",
2020
"types-requests>=2.32.0,<3.0.0",
2121
"types-beautifulsoup4>=4.12.0,<5.0.0",
22+
"types-networkx>=3.4.2",
2223
"pytest>=8.3.4,<9",
2324
]
2425

0 commit comments

Comments
 (0)