Skip to content

ci: modified to run ubuntu and windows tests using the same job #218

ci: modified to run ubuntu and windows tests using the same job

ci: modified to run ubuntu and windows tests using the same job #218

Workflow file for this run

name: 'test'
on:
push:
jobs:
test:
strategy:
matrix:
os: [ubuntu, windows]
pyver: [3.8, 3.9, 3.10, 3.11, 3.12]
exclude:
- os: windows
pyver: 3.8
- os: windows
pyver: 3.9
- os: windows
pyver: 3.10
- os: windows
pyver: 3.11
runs-on: ${{ matrix.os }}-latest
name: ${{ matrix.os }} | ${{ matrix.pyver }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.pyver }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.pyver }}
- name: Install dependencies
run: pip install . && pip install pytest
- name: Run tests
run: |
make test
# source tests/mocks/source-me.sh && make test
# cd examples/projects && bash regress.sh
# test-win:
# strategy:
# matrix:
# os: ['windows']
# pyver: ['3.12']
# runs-on: ${{ matrix.os }}-latest
# name: ${{ matrix.os }} | ${{ matrix.pyver }}
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# - name: Set up Python ${{ matrix.pyver }}
# uses: actions/setup-python@v5
# with:
# python-version: ${{ matrix.pyver }}
# - name: Install dependencies
# run: pip install . && pip install pytest
# - name: Run tests
# run: |
# source tests/mocks/source-me.sh && make test
# cd examples/projects && bash regress.sh
# $Env:PATH += ";${{ github.workspace }}\tests\mocks"
# cd examples\projects && python3 vivado.py