-
Notifications
You must be signed in to change notification settings - Fork 14
48 lines (39 loc) · 1.11 KB
/
test-precheck.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Precheck Tests
on:
push:
pull_request:
workflow_dispatch:
jobs:
test-precheck:
runs-on: ubuntu-latest
env:
PDK_ROOT: /home/runner/pdk
PDK_VERSION: dd7771c384ed36b91a25e9f8b314355fc26561be
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Install dependencies
working-directory: precheck
run: pip install -r requirements.txt
- name: Install Sky130 PDK
uses: TinyTapeout/volare-action@v2
with:
pdk_name: sky130
pdk_version: ${{ env.PDK_VERSION }}
pdk_root: ${{ env.PDK_ROOT }}
- name: Install Nix
uses: rikhuijzer/[email protected]
with:
key: nix-${{ hashFiles('precheck/default.nix') }}
nix_file: 'precheck/default.nix'
- name: Build Nix packages
working-directory: precheck
run: nix-build
- name: Run tests
working-directory: precheck
run: nix-shell --run "pytest"