Skip to content

Test

Test #1234

Workflow file for this run

name: Test
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 15 * * *'
env:
CI: true
jobs:
lin-setup-verification:
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 8
matrix:
backend: [
mcode,
llvm,
gcc
]
project: [
OSVVM,
UVVM
]
name: '馃惂 ${{ matrix.project }} 路 bash 路 ${{ matrix.backend }}'
steps:
- name: '馃О Checkout'
uses: actions/checkout@v2
- name: '鈿欙笍 Setup GHDL'
uses: ghdl/setup-ghdl-ci@master
with:
backend: ${{ matrix.backend }}
- run: ./verification/${{ matrix.project }}/run.sh
win-verification:
runs-on: windows-latest
strategy:
fail-fast: false
max-parallel: 8
matrix:
sys: [
{icon: '馃煢', installs: 'MINGW32', arch: i686, pkg: 'mcode' },
#{icon: '馃煢', installs: "MINGW32", arch: i686, pkg: "llvm" }, ! Not yet functional
#{icon: '馃煪', installs: "MINGW64", arch: x86_64, pkg: "mcode" }, ! mcode is not yet supported on win64
{icon: '馃煪', installs: 'MINGW64', arch: x86_64, pkg: 'llvm' },
]
project: [
OSVVM,
UVVM
]
shell: [
msys2,
psh
]
name: '${{ matrix.sys.icon }} ${{ matrix.project }} 路 ${{ matrix.shell }} 路 ${{ matrix.sys.installs }} ${{ matrix.sys.pkg }}'
defaults:
run:
shell: msys2 {0}
steps:
- name: '${{ matrix.sys.icon }} Setup MSYS2'
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.sys.installs }}
update: true
install: git
- name: '馃О Checkout'
uses: actions/checkout@v2
- name: '鈿欙笍 Setup GHDL'
uses: ghdl/setup-ghdl-ci@master
with:
backend: ${{ matrix.sys.pkg }}
- name: '${{ matrix.sys.icon }} Compile ${{ matrix.project }}'
if: matrix.shell == 'msys2'
run: ./verification/${{ matrix.project }}/run.sh
- name: Compile ${{ matrix.project }}
if: matrix.shell == 'psh'
shell: pwsh
run: verification\${{ matrix.project }}\run.ps1
env:
CC: gcc
DOM:
runs-on: ubuntu-latest
name: '馃惂 ${{ matrix.project }} 路 DOM'
steps:
- name: '馃О Checkout'
uses: actions/checkout@v2
with:
submodules: recursive
- name: '鈿欙笍 Setup GHDL'
uses: ghdl/setup-ghdl-ci@master
- name: '馃悕 Setup Python'
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: '馃悕 Install dependencies'
run: |
pip3 install pytest pytest-reporter pytest-reporter-html1 pytest-xdist
pip3 install git+https://github.com/ghdl/ghdl.git@$(ghdl version hash)
- name: '馃摝 Clone repositories to be analysed'
run: |
for prj in \
ghdl/ghdl \
ghdl/ghdl-cosim \
ghdl/ghdl-yosys-plugin \
VUnit/vunit VLSI-EDA/PoC \
antonblanchard/microwatt \
stnolting/NEORV32;
do git clone https://github.com/"$prj"; done
- name: '馃毀 Run pytest'
run: pytest -n $(nproc) --template=html1/index.html --report=report.html TestDOM.py
- name: '馃摛 Upload artifact: report.html'
if: github.event_name != 'pull_request'
uses: actions/upload-artifact@v2
with:
path: report.html
- name: '馃摀 Publish report to gh-pages'
if: github.event_name != 'pull_request'
run: |
mkdir public
cd public
git init
cp ../.git/config ./.git/config
touch .nojekyll
cp ../report.html ./index.html
git add .
git config --local user.email "push@gha"
git config --local user.name "GHA"
git commit -am "update ${{ github.sha }}"
git push -u origin +HEAD:gh-pages