Skip to content

Commit

Permalink
Add CI configuration for Github (on push / pull request)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanlippuner committed Sep 22, 2023
1 parent bb7587e commit e19cea9
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
on: [push, pull_request]

name: CI

jobs:
generation:
name: Generation
runs-on: ubuntu-22.04
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Setup Python venv
run: |
python3 -m venv .venv
source .venv/bin/activate
python -V
pip install -r requirements.txt
- name: Test Generation
run: |
cd proto
python3 tests.py
interaction:
name: Interaction
runs-on: ubuntu-22.04
steps:
- name: Install GHDL
run: sudo apt-get install ghdl

- name: Checkout sources
uses: actions/checkout@v4

- name: Setup Python venv
run: |
python3 -m venv .venv
source .venv/bin/activate
python -V
pip install -r requirements.txt
- name: Test Generation
run: |
cd testfiles/tb
./run.sh
2 changes: 1 addition & 1 deletion testfiles/tb/run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

GHDL=${GHDL:-ghdl}
GHDL_FLAGS=--std=08
Expand Down

0 comments on commit e19cea9

Please sign in to comment.