-
Notifications
You must be signed in to change notification settings - Fork 31
33 lines (28 loc) · 881 Bytes
/
matrix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Matrix Strategy Workflow
on: [push, workflow_dispatch, pull_request]
jobs:
PR-Verification:
continue-on-error: true
strategy:
matrix:
python-version: [3.11, 3.12]
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
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