Skip to content

Commit 190640d

Browse files
committed
Merge branch 'develop' of github.com:PyHDI/Pyverilog into develop
2 parents 1b0eed9 + eed2c7c commit 190640d

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/main.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI
2+
3+
# Controls when the workflow will run
4+
on:
5+
# Triggers the workflow on push or pull request events but only for the develop branch
6+
push:
7+
branches-ignore: [ ]
8+
pull_request:
9+
branches-ignore: [ ]
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
15+
jobs:
16+
# This workflow contains a single job called "build"
17+
build:
18+
# The type of runner that the job will run on
19+
runs-on: ubuntu-latest
20+
strategy:
21+
matrix:
22+
python-version: [3.7, 3.8, 3.9]
23+
24+
# Steps represent a sequence of tasks that will be executed as part of the job
25+
steps:
26+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
27+
- uses: actions/checkout@v2
28+
# Setup Python
29+
- name: Set up Python ${{ matrix.python-version }}
30+
uses: actions/setup-python@v2
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
# Install apt dependencies
34+
- name: Install apt dependencies
35+
run: sudo apt install iverilog
36+
# Install dependencies
37+
- name: Install dependencies
38+
run: |
39+
python -m pip install --upgrade pip
40+
pip install pytest pytest-pythonpath jinja2 ply
41+
# Run pytest
42+
- name: Test with pytest
43+
run: |
44+
python -m pytest tests

0 commit comments

Comments
 (0)