name: Build on: [push, pull_request] concurrency: group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}} cancel-in-progress: true jobs: build: runs-on: ubuntu-latest strategy: matrix: python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: https://github.com/actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: https://github.com/actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip tox - name: Build and test run: | tox