File tree 1 file changed +16
-7
lines changed
1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -4,28 +4,37 @@ on: [push, pull_request]
4
4
5
5
jobs :
6
6
build :
7
- runs-on : ubuntu-20.04
7
+ runs-on : ubuntu-24.04
8
+ timeout-minutes : 20
8
9
steps :
9
10
# Checkout Repository
10
11
- name : Checkout
11
- uses : actions/checkout@v2
12
+ uses : actions/checkout@v4
12
13
13
14
# Install Tools
14
15
- name : Install Tools
15
16
run : |
16
- sudo apt-get install wget build-essential python3
17
- pip3 install setuptools
17
+ sudo apt-get install wget build-essential python3 python3-setuptools python3-pytest
18
+
19
+ - name : Set up Python
20
+ run : |
21
+ python3 -m venv --system-site-packages .venv
18
22
19
23
# Install (n)Migen / LiteX / Cores
20
24
- name : Install LiteX
21
25
run : |
26
+ source .venv/bin/activate
22
27
wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py
23
- python3 litex_setup.py init install --user
28
+ python3 litex_setup.py init install --config=minimal
24
29
25
30
# Install Project
26
31
- name : Install Project
27
- run : python3 setup.py develop --user
32
+ run : |
33
+ source .venv/bin/activate
34
+ python3 -m pip install --editable .
28
35
29
36
# Test
30
37
- name : Run Tests
31
- run : python3 setup.py test
38
+ run : |
39
+ source .venv/bin/activate
40
+ python3 -m pytest -v
You can’t perform that action at this time.
0 commit comments