File tree Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -4,28 +4,38 @@ on: [push, pull_request]
44
55jobs :
66 build :
7- runs-on : ubuntu-20.04
7+ runs-on : ubuntu-24.04
8+ timeout-minutes : 20
89 steps :
910 # Checkout Repository
1011 - name : Checkout
11- uses : actions/checkout@v2
12+ uses : actions/checkout@v4
1213
1314 # Install Tools
1415 - name : Install Tools
1516 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 : Create Python virtual environment
20+ run : |
21+ python3 -m venv --system-site-packages .venv
22+ source .venv/bin/activate
23+ echo "VIRTUAL_ENV=${VIRTUAL_ENV}" >> $GITHUB_ENV
24+ echo "${VIRTUAL_ENV}/bin" >> $GITHUB_PATH
25+ shell : bash
1826
1927 # Install (n)Migen / LiteX / Cores
2028 - name : Install LiteX
2129 run : |
2230 wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py
23- python3 litex_setup.py init install --user
31+ python3 litex_setup.py init install --config=minimal
2432
2533 # Install Project
2634 - name : Install Project
27- run : python3 setup.py develop --user
35+ run : |
36+ python3 -m pip install --editable .
2837
2938 # Test
3039 - name : Run Tests
31- run : python3 setup.py test
40+ run : |
41+ python3 -m pytest -v
You can’t perform that action at this time.
0 commit comments