diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..9e91e9a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,31 @@ +name: Python Tests +# Triggers on pushes/pull requests to 'master'. +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + name: Test Python ${{ matrix.python-version }} + runs-on: ubuntu-latest + strategy: + fail-fast: false # Ensure all versions test even if one fails + matrix: + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: python -m pip install --upgrade pip tox + + - name: Run tests via tox + run: tox \ No newline at end of file