Skip to content

Commit

Permalink
Run tests in CI
Browse files Browse the repository at this point in the history
Run tests in CI to better demonstrate how to build things.  At the moment
there are some failures. I think I have stashed changes that fix them, but
I think some of them have been introduced by newer tool versions.

Closes: 2
Signed-off-by: Sean Anderson <[email protected]>
  • Loading branch information
Forty-Bot committed Dec 3, 2024
1 parent f8d9d72 commit 272ff2c
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ concurrency:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
with:
submodules: true
- if: ${{ env.ACT }}
run: sudo apt-get update
- run: sudo apt-get install -y asciidoctor
- id: config
uses: actions/configure-pages@v2
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/rtl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Run test suite

on:
push

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies missing in act
if: ${{ env.ACT }}
run: |
sudo apt-get update
sudo apt-get install -y python3-dev
- name: Get pip cache dir
id: pip-cache
run: |
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: Cache pip dependencies
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
echo "$HOME/.local/bin" >> $GITHUB_PATH
sudo apt-get install -y fpga-icestorm iverilog nextpnr-ice40 yosys-dev
python3 -m venv venv
venv/bin/pip install -r requirements.txt
- run: |
source venv/bin/activate
make -k test
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
asyncstdlib==3.12.2
cocotb @ git+https://[email protected]/Forty-Bot/cocotb.git@8810af1a66c461217dc00d0aa47043b8ea130f65
find_libpython==0.3.0

0 comments on commit 272ff2c

Please sign in to comment.