ci: modified to run ubuntu and windows tests using the same job #218
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |