mirror of
https://github.com/myhdl/myhdl.git
synced 2024-12-14 07:44:38 +08:00
79cf2218f4
* Removed testing with Python 3.6 - EOL Added testing with PyPy 3.9 * corrected to 'pypy-3.9'
54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
name: Test myhdl
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
schedule:
|
|
- cron: '0 0 * * 0'
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false # So that one fail doesn't stop remaining tests
|
|
matrix:
|
|
python-version: ["3.7", "3.8", "3.9", "3.10", 'pypy-3.9']
|
|
os: [ubuntu-latest]
|
|
target: [core, iverilog, ghdl]
|
|
|
|
env:
|
|
CI_TARGET: ${{ matrix.target }}
|
|
TERM: xterm-256color # for tput in the script file
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v3
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip pytest
|
|
python -m pip install .
|
|
- name: Report Environment
|
|
run: |
|
|
echo "Runing tests with env set to : ${CI_TARGET}"
|
|
- name: Install iverilog
|
|
if: ${{ env.CI_TARGET == 'iverilog' }}
|
|
run: |
|
|
sudo apt-get -qq update;
|
|
sudo apt-get install -y iverilog;
|
|
- name: Install ghdl
|
|
if: ${{ env.CI_TARGET == 'ghdl' }}
|
|
run: |
|
|
git clone https://github.com/ghdl/ghdl.git;
|
|
cd ghdl;
|
|
sudo apt install gnat;
|
|
./configure --prefix=/usr/local;
|
|
make;
|
|
sudo make install;
|
|
cd ..;
|
|
- name: Run Tests
|
|
run: |
|
|
./scripts/ci.sh
|