ci: improve and update github action #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
# Install (n)Migen / LiteX / Cores | |
- name: Install LiteX | |
run: | | |
wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py | |
python3 litex_setup.py init install --user --config=minimal | |
# Install Project | |
- name: Install Project | |
run: python3 -m pip install --editable . --user | |
# Test | |
- name: Run Tests | |
run: python3 -m unittest |