2024-07-01 19:29:36 +00:00
|
|
|
name: Unit tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
unit-tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repo
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Setup PDM
|
|
|
|
uses: pdm-project/setup-pdm@v4
|
|
|
|
|
2024-07-02 09:39:16 +00:00
|
|
|
- name: Install Python dependencies
|
2024-07-01 19:29:36 +00:00
|
|
|
run: pdm install
|
|
|
|
|
2024-07-02 09:39:16 +00:00
|
|
|
- name: Install OSS CAD Suite
|
|
|
|
uses: YosysHQ/setup-oss-cad-suite@v3
|
|
|
|
with:
|
|
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
2024-07-01 19:29:36 +00:00
|
|
|
- name: Run tests
|
2024-07-01 19:42:40 +00:00
|
|
|
run: .venv/bin/pytest
|