Skip to content

Commit

Permalink
add test Matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
lwj-st committed Sep 18, 2024
1 parent db6cac8 commit 7eb417f
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Matrix.yml → .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python Test Matrix
name: Python Test Macos

on:
push:
Expand All @@ -18,7 +18,7 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
os: [macOS-latest]
python-version: ['3.10', 3.11, 3.12]

steps:
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
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\AppData\Roaming\Python\Scripts" >> $env:GITHUB_PATH

- name: Install dependencies
run: poetry install

- name: Run tests
run: poetry run python -m tests/basic_tests/

0 comments on commit 7eb417f

Please sign in to comment.