Skip to content

Commit

Permalink
correct matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
weijie-chen committed Jun 5, 2024
1 parent f3bd97a commit ef3f40c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/matrix.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ef3f40c

Please sign in to comment.