Skip to content

Commit

Permalink
Add more python versions to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
themperek committed Jan 21, 2023
1 parent ddc8895 commit ecf9e34
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
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($(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

0 comments on commit ecf9e34

Please sign in to comment.