forked from litex-hub/litespi
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 987 Bytes
/
ci.yml
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
name: ci
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-24.04
timeout-minutes: 20
steps:
# Checkout Repository
- name: Checkout
uses: actions/checkout@v4
# Install Tools
- name: Install Tools
run: |
sudo apt-get install wget build-essential python3 python3-setuptools
- name: Set up Python
run: |
python3 -m venv --system-site-packages .venv
# Install (n)Migen / LiteX / Cores
- name: Install LiteX
run: |
source .venv/bin/activate
wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py
python3 litex_setup.py init install --config=minimal
# Install Project
- name: Install Project
run: |
source .venv/bin/activate
python3 -m pip install --editable .
# Test
- name: Run Tests
run: |
source .venv/bin/activate
python3 -m unittest