From ef3f40cd83b1f89ee971e6f18a97509fcbef0733 Mon Sep 17 00:00:00 2001 From: weijie-chen Date: Wed, 5 Jun 2024 11:29:18 +0200 Subject: [PATCH] correct matrix --- .github/workflows/matrix.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/matrix.yml b/.github/workflows/matrix.yml index 82d4f95..59f8eb4 100644 --- a/.github/workflows/matrix.yml +++ b/.github/workflows/matrix.yml @@ -1,18 +1,32 @@ name: Matrix Strategy Workflow on: [push, workflow_dispatch, pull_request] + jobs: PR-Verification: strategy: matrix: python-version: [3.10, 3.11, 3.12] operating-system: [ubuntu-latest, windows-latest, macOS-latest] - runs-on: $ {{ matrix.operating-system }} + runs-on: ${{ matrix.operating-system }} steps: - name: Get code uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install Poetry run: | curl -sSL https://install.python-poetry.org | python3 - export PATH="$HOME/.local/bin:$PATH" + poetry env use python${{ matrix.python-version }} + - name: Install dependencies + run: | + poetry install -v + + - name: Run tests + run: | + poetry run pytest -v