Skip to content

add test Matrix

add test Matrix #2

Workflow file for this run

name: Python Test Win
on:
push:
branches:
- main
- lwj/test_Matrix
pull_request:
branches:
- main
env:
POETRY_VERSION: "1.8.3"
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
python-version: ['3.10', 3.11, 3.12]
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: ${{ env.POETRY_VERSION }}
- name: Add Poetry to PATH
if: runner.os == 'Windows'
run: echo "C:\Users\runneradmin\.local\bin" >> $env:GITHUB_PATH
- name: Install dependencies
run: poetry install
- name: Run tests
run: poetry run python -m tests/basic_tests/