-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from SiLab-Bonn/github_actions_CI
Update simulation tests and use Github actions for CI
- Loading branch information
Showing
5 changed files
with
97 additions
and
42 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Software tests | ||
|
||
on: push | ||
|
||
jobs: | ||
tests: | ||
name: Test | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Anaconda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: 3.9 | ||
- name: Install Conda dependencies | ||
shell: bash -l {0} | ||
run: | | ||
conda info -a | ||
conda install pytest numpy psutil qtpy pyyaml pyzmq pytables | ||
- name: Install basil | ||
shell: bash -l {0} | ||
run: | | ||
pip install basil-daq>=3.0.0 | ||
- name: Install Python dependencies | ||
shell: bash -l {0} | ||
run: | | ||
pip install cocotb cocotb_bus xvfbwrapper pyqt5 | ||
- name: Install iverilog | ||
run: | | ||
sudo apt-get install -qq libhdf5-serial-dev libxkbcommon-x11-0 | ||
sudo apt-get install '^libxcb.*-dev' | ||
# sudo apt-get -y install iverilog-daily | ||
sudo apt-get install gperf | ||
git clone https://github.com/steveicarus/iverilog.git | ||
cd iverilog; autoconf; ./configure; make; sudo make install; cd .. | ||
- name: Install EUDAQ | ||
shell: bash -l {0} | ||
run: | | ||
source tests/setup_eudaq.sh | ||
- name: Install package | ||
shell: bash -l {0} | ||
run: | | ||
pip install -e . | ||
- name: Test | ||
shell: bash -l {0} | ||
run: | | ||
cd tests | ||
pytest -s -v | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,4 +76,6 @@ output_data | |
*.lprof | ||
|
||
*.history | ||
. | ||
|
||
sim_build | ||
results.xml |
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
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
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