Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more python versions to CI #218

Merged
merged 1 commit into from
Jan 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,22 @@ jobs:
- job:
strategy:
matrix:
Linux-Icarus-py37:
python.version: "3.7"
imageName: "ubuntu-latest"
SIM: "icarus"
Linux-Icarus-py38:
python.version: "3.8"
imageName: "ubuntu-latest"
SIM: "icarus"
Linux-Icarus-py39:
python.version: "3.9"
imageName: "ubuntu-latest"
SIM: "icarus"
Linux-Icarus-py310:
python.version: "3.10"
imageName: "ubuntu-latest"
SIM: "icarus"
Linux-GHDL-py38:
python.version: "3.8"
imageName: "ubuntu-latest"
Expand Down Expand Up @@ -57,7 +69,7 @@ jobs:
displayName: Init Conda

- script: |
conda install -y python=$(python.version) pytest
conda install -y python=$(python.version)
conda update -q -y conda
displayName: Update set python version and update

Expand Down Expand Up @@ -98,8 +110,9 @@ jobs:
displayName: "Package Test with Tox"
condition: ne( variables['Agent.OS'], 'Windows_NT' )

# AttributeError: module 'py' has no attribute 'log' for pytest 7.2
- script: |
pip install pytest-parallel
pip install pytest-parallel pytest==7.1
displayName: "Install pytest-parallel"

- script: |
Expand All @@ -123,7 +136,7 @@ jobs:
pytest -m compile tests/test_parallel.py
pytest -m "not compile" --workers 2 tests/test_parallel.py
displayName: "Test with pytest-parallel"
condition: ne( variables['Agent.OS'], 'Windows_NT' )
condition: and(ne( variables['Agent.OS'], 'Windows_NT' ), ne(variables['python.version'],3.7))

- script: |
pytest -m compile tests/test_parallel.py
Expand Down
2 changes: 2 additions & 0 deletions cocotb_test/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,8 @@ async def _exec(self, cmds):
]
)

await p.wait()

def execute(self, cmds):

__tracebackhide__ = True # Hide the traceback when using PyTest.
Expand Down