Skip to content

Commit 66aaba8

Browse files
committed
Re-lock PDM in CI
1 parent ad01edb commit 66aaba8

File tree

1 file changed

+25
-8
lines changed

1 file changed

+25
-8
lines changed

.github/workflows/main.yaml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,22 @@ jobs:
1515
steps:
1616
- name: Check out source code
1717
uses: actions/checkout@v4
18-
with:
19-
fetch-depth: 0
18+
2019
- name: Set up PDM
2120
uses: pdm-project/setup-pdm@v4
21+
22+
- name: Re-lock PDM dependencies
23+
run: pdm lock -d
24+
2225
- name: Install dependencies
23-
run: |
24-
pdm install
26+
run: pdm install
27+
2528
- name: Run tests
26-
run: |
27-
pdm run test
29+
run: pdm run test
30+
2831
- name: Run lints
29-
run: |
30-
pdm run lint
32+
run: pdm run lint
33+
3134
- name: Run doc tests
3235
run: pdm run test-docs
3336

@@ -50,6 +53,7 @@ jobs:
5053
with:
5154
fetch-depth: 0
5255
path: chipflow-lib
56+
5357
- name: Check out chipflow-examples
5458
uses: actions/checkout@v4
5559
with:
@@ -63,12 +67,18 @@ jobs:
6367
python-version: "3.10"
6468
cache: true
6569
cache-dependency-path: "./**/pyproject.toml"
70+
71+
- name: Re-lock PDM dependencies
72+
working-directory: ./chipflow-examples
73+
run: pdm lock -d
74+
6675
- name: Install dependencies
6776
working-directory: ./chipflow-examples
6877
run: |
6978
pdm install
7079
pdm run python -m ensurepip
7180
pdm run python -m pip install -e ../chipflow-lib
81+
7282
- name: Run tests
7383
working-directory: ./chipflow-examples/minimal
7484
run: |
@@ -86,6 +96,7 @@ jobs:
8696
with:
8797
fetch-depth: 0
8898
path: chipflow-lib
99+
89100
- name: Check out chipflow-examples
90101
uses: actions/checkout@v4
91102
with:
@@ -99,12 +110,18 @@ jobs:
99110
python-version: "3.10"
100111
cache: true
101112
cache-dependency-path: "./**/pyproject.toml"
113+
114+
- name: Re-lock PDM dependencies
115+
working-directory: ./chipflow-examples
116+
run: pdm lock -d
117+
102118
- name: Install dependencies
103119
working-directory: ./chipflow-examples
104120
run: |
105121
pdm install
106122
pdm run python -m ensurepip
107123
pdm run python -m pip install -e ../chipflow-lib
124+
108125
- name: Run tests
109126
working-directory: ./chipflow-examples/minimal
110127
run: |

0 commit comments

Comments
 (0)