Python 2.7 removed from unittests matrix strategy #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python Multi-OS Tests | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build-and-test: | |
runs-on: ${{ matrix.os }} # Matrix strategy picks OS | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
python-version: "3.13" | |
- os: windows-latest | |
python-version: "3.13" | |
- os: macos-latest | |
python-version: "3.13" | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run Tests | |
run: | | |
python -m unittest discover -s tests |