Skip to content

Tests

Tests #68

Workflow file for this run

# Copyright cocotb contributors
# Licensed under the Revised BSD License, see LICENSE for details.
# SPDX-License-Identifier: BSD-3-Clause
name: Tests
on:
push:
# branches:
# - master
# - 'stable/**'
pull_request:
# branches:
# - master
# - 'stable/**'
jobs:
tests:
name: ${{matrix.extra_name}}${{matrix.sim}} (${{matrix.sim-version}}) | ${{matrix.os}} | Python ${{matrix.python-version}} ${{matrix.may_fail && '| May Fail' || ''}}
runs-on: ${{matrix.os}}
env:
SIM: ${{matrix.sim}}
TOPLEVEL_LANG: ${{matrix.lang}}
strategy:
fail-fast: false
matrix:
# python-version: ["3.6", "3.12"]
include:
- sim: icarus
sim-version: apt
python-version: "3.6"
lang: verilog
os: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{matrix.python-version}}
- name: Install cocotb requirements
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get update
sudo apt-get install --yes g++ make
- name: Set up Icarus (apt)
if: matrix.sim == 'icarus' && matrix.sim-version == 'apt'
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get install --yes --no-install-recommends iverilog
- name: Install testing requirements
run: |
pip install nox
- name: Run tests
continue-on-error: ${{matrix.may_fail || false}}
run: |
nox -e tests