Skip to content

Commit 64608c8

Browse files
committed
fix CI
1 parent 046d7bd commit 64608c8

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ jobs:
1919
- uses: actions/setup-python@v5
2020
with:
2121
python-version: ${{ matrix.py }}
22-
- name: "Install requirements"
23-
run: |
24-
python -m pip install -r requirements-dev.txt
22+
- name: Setup PDM
23+
uses: pdm-project/setup-pdm@v4
24+
- name: Install dependencies
25+
run: pdm install
2526
- name: "Run pytest"
2627
run: |
27-
pytest
28+
pdm run pytest
2829
2930
check-typing:
3031
runs-on: ubuntu-latest
@@ -33,5 +34,8 @@ jobs:
3334
- uses: actions/setup-python@v5
3435
with:
3536
python-version: "3.9"
36-
- run: pip install mypy
37-
- run: mypy --install-types --non-interactive
37+
- name: Setup PDM
38+
uses: pdm-project/setup-pdm@v4
39+
- name: Install dependencies
40+
run: pdm install
41+
- run: pdm run mypy --install-types --non-interactive

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ readme = {file = ["README.rst"]}
3535
[dependency-groups]
3636
dev = [
3737
"pytest",
38-
"mypy"
38+
"mypy[install-types]"
3939
]
4040

4141
[tool.mypy]

0 commit comments

Comments
 (0)