Skip to content

Commit e4e849a

Browse files
committed
Iterating on pdm venv setup
1 parent 248c080 commit e4e849a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/main.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@ jobs:
2222
persist-credentials: false
2323
- name: Install pdm
2424
uses: pdm-project/setup-pdm@v4
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
cache: true
28+
cache-dependency-path: ./pyproject.toml
2529

2630
- name: Install dependencies
2731
run: |
28-
pdm venv create
29-
pdm sync --only-keep --dev
32+
pdm install
3033
3134
- name: Run tests
3235
run: pdm run invoke tests
@@ -47,11 +50,12 @@ jobs:
4750

4851
- name: Install pdm
4952
uses: pdm-project/setup-pdm@v4
53+
with:
54+
python-version: "3.10"
5055

5156
- name: Install dependencies
5257
run: |
53-
pdm venv create
54-
pdm sync --only-keep --dev
58+
pdm install
5559
5660
- name: Run linters
5761
run: pdm run invoke lint --diff

0 commit comments

Comments
 (0)