From 7897ef6a993ead969ed607c8ce0f968c9c96641f Mon Sep 17 00:00:00 2001 From: VinhTechiee Date: Tue, 28 Jul 2026 09:58:42 +0700 Subject: [PATCH] ci: run Verilog tests with GitHub Actions --- .github/workflows/verilog-tests.yml | 37 +++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/verilog-tests.yml diff --git a/.github/workflows/verilog-tests.yml b/.github/workflows/verilog-tests.yml new file mode 100644 index 0000000..4a8602c --- /dev/null +++ b/.github/workflows/verilog-tests.yml @@ -0,0 +1,37 @@ +name: Verilog Tests + +on: + push: + branches: + - main + - "develop/**" + + pull_request: + branches: + - main + +jobs: + simulation: + name: Icarus Verilog Simulation + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install Icarus Verilog + run: | + sudo apt-get update + sudo apt-get install -y iverilog + + - name: Show tool versions + run: | + python3 --version + iverilog -V + + - name: Run all tests + run: | + python3 run_tests.py \ + --src src \ + --testbench testbench \ + --sim icarus \ No newline at end of file