Skip to content

ci: modified how to run ubuntu and windows tests #214

ci: modified how to run ubuntu and windows tests

ci: modified how to run ubuntu and windows tests #214

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']
runs-on: ${{ matrix.os }}-latest
name: ${{ matrix.os }} | ${{ matrix.pyver }}
exclude:

Check failure on line 14 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / test

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 14, Col: 5): Unexpected value 'exclude'
os: ['windows']
pyver: ['3.8', '3.9', '3.10', '3.11']
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