Skip to content

ci: improve and update github action #35

ci: improve and update github action

ci: improve and update github action #35

Workflow file for this run

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 python3-pytest
- name: Set up Python
run: |
python3 -m venv --system-site-packages .venv
# Install (n)Migen / LiteX / Cores
- name: Install LiteX
run: |
source .venv/bin/activate
wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py
python3 litex_setup.py init install --config=minimal
# Install Project
- name: Install Project
run: |
source .venv/bin/activate
python3 -m pip install --editable .
# Test
- name: Run Tests
run: |
source .venv/bin/activate
python3 -m pytest -v