Skip to content

Commit fd5860c

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

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,38 @@ 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: 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

0 commit comments

Comments
 (0)