diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fc0df3c..ba512a9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,6 +9,25 @@ on: jobs: test: runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.12', '3.13'] + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies and run CI + run: | + python -m pip install --upgrade pip + make install-test test + + test-windows: + runs-on: windows-latest strategy: matrix: python-version: ['3.12'] @@ -27,7 +46,7 @@ jobs: make install-test test publish: - needs: test + needs: [test, test-windows] runs-on: ubuntu-latest permissions: contents: write diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1ded626..a1ea0a6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,8 +5,27 @@ on: branches: [ main ] jobs: - test: + test-linux: runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.12', '3.13'] + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies and run tests + run: | + python -m pip install --upgrade pip + make install-test test + + test-windows: + runs-on: windows-latest # Added Windows testing strategy: matrix: python-version: ['3.12']