Skip to content

Commit e229c64

Browse files
committed
ci: improve and update github action
improve and update github action Signed-off-by: Fin Maaß <[email protected]>
1 parent 6ab6cbd commit e229c64

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/workflows/ci.yml

+16-7
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,37 @@ on: [push, pull_request]
44

55
jobs:
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: Set up Python
20+
run: |
21+
python3 -m venv --system-site-packages .venv
1822
1923
# Install (n)Migen / LiteX / Cores
2024
- name: Install LiteX
2125
run: |
26+
source .venv/bin/activate
2227
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
2429
2530
# Install Project
2631
- name: Install Project
27-
run: python3 setup.py develop --user
32+
run: |
33+
source .venv/bin/activate
34+
python3 -m pip install --editable .
2835
2936
# Test
3037
- name: Run Tests
31-
run: python3 setup.py test
38+
run: |
39+
source .venv/bin/activate
40+
python3 -m pytest -v

0 commit comments

Comments
 (0)