name: CI on: pull_request: {} push: branches: - master tags: - '*' jobs: macos: runs-on: macos-latest strategy: matrix: PYTHON: - {VERSION: "3.6", TOXENV: "py36"} - {VERSION: "3.7", TOXENV: "py37"} - {VERSION: "3.8", TOXENV: "py38"} - {VERSION: "3.9", TOXENV: "py39"} name: "Python ${{ matrix.PYTHON.VERSION }} on macOS" steps: - uses: actions/checkout@master - name: Setup python uses: actions/setup-python@v2.2.1 with: python-version: ${{ matrix.PYTHON.VERSION }} - run: pip install tox - run: tox env: TOXENV: ${{ matrix.PYTHON.TOXENV }} windows: runs-on: windows-latest strategy: matrix: WINDOWS: - {ARCH: 'x86', WINDOWS: 'win32'} - {ARCH: 'x64', WINDOWS: 'win64'} PYTHON: - {VERSION: "3.6", TOXENV: "py36"} - {VERSION: "3.7", TOXENV: "py37"} - {VERSION: "3.8", TOXENV: "py38"} - {VERSION: "3.9", TOXENV: "py39"} name: "Python ${{ matrix.PYTHON.VERSION }} on ${{ matrix.WINDOWS.WINDOWS }}" steps: - uses: actions/checkout@master - name: Setup python uses: actions/setup-python@v2.2.1 with: python-version: ${{ matrix.PYTHON.VERSION }} architecture: ${{ matrix.WINDOWS.ARCH }} - run: pip install tox - run: tox env: TOXENV: ${{ matrix.PYTHON.TOXENV }}