Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 25 additions & 8 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,22 @@ jobs:
steps:
- name: Check out source code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up PDM
uses: pdm-project/setup-pdm@v4

- name: Re-lock PDM dependencies
run: pdm lock -d

- name: Install dependencies
run: |
pdm install
run: pdm install

- name: Run tests
run: |
pdm run test
run: pdm run test

- name: Run lints
run: |
pdm run lint
run: pdm run lint

- name: Run doc tests
run: pdm run test-docs

Expand All @@ -50,6 +53,7 @@ jobs:
with:
fetch-depth: 0
path: chipflow-lib

- name: Check out chipflow-examples
uses: actions/checkout@v4
with:
Expand All @@ -63,12 +67,18 @@ jobs:
python-version: "3.10"
cache: true
cache-dependency-path: "./**/pyproject.toml"

- name: Re-lock PDM dependencies
working-directory: ./chipflow-examples
run: pdm lock -d

- name: Install dependencies
working-directory: ./chipflow-examples
run: |
pdm install
pdm run python -m ensurepip
pdm run python -m pip install -e ../chipflow-lib

- name: Run tests
working-directory: ./chipflow-examples/minimal
run: |
Expand All @@ -86,6 +96,7 @@ jobs:
with:
fetch-depth: 0
path: chipflow-lib

- name: Check out chipflow-examples
uses: actions/checkout@v4
with:
Expand All @@ -99,12 +110,18 @@ jobs:
python-version: "3.10"
cache: true
cache-dependency-path: "./**/pyproject.toml"

- name: Re-lock PDM dependencies
working-directory: ./chipflow-examples
run: pdm lock -d

- name: Install dependencies
working-directory: ./chipflow-examples
run: |
pdm install
pdm run python -m ensurepip
pdm run python -m pip install -e ../chipflow-lib

- name: Run tests
working-directory: ./chipflow-examples/minimal
run: |
Expand Down
Loading
Loading