name: build

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version:
          - '3.6'
          - '3.7'
          - '3.8'
          - '3.9'
          - '3.10'
    steps:
      - name: 'Set up Python ${{ matrix.python-version }}'
        uses: actions/setup-python@v2
        with:
          python-version: '${{ matrix.python-version }}'
      - name: 'Checkout'
        uses: actions/checkout@v2
      - name: 'Pip upgrade'
        run: pip install --upgrade pip setuptools wheel
      - name: 'Install dev-requirements'
        run: pip install -q -r dev-requirements.txt
      - name: 'Install requirements'
        run: pip install -q -r requirements.txt
      - name: 'Flake8'
        run: flake8 docs/conf.py examples pymanopt setup.py tests
      - name: 'Tests'
        run: nose2 tests --verbose --with-coverage
      - name: 'Coveralls'
        if: ${{ matrix.python-version == '3.7' }}
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          COVERALLS_SERVICE_NAME: github
        run: coveralls

name: build

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version:
          - '3.6'
          - '3.7'
          - '3.8'
          - '3.9'
          #- '3.10' (wait for all dependencies having the needed support)
    steps:
      - name: 'Set up Python ${{ matrix.python-version }}'
        uses: actions/setup-python@v2
        with:
          python-version: '${{ matrix.python-version }}'
      - name: 'Checkout'
        uses: actions/checkout@v2
      - name: 'Pip upgrade'
        run: pip install --upgrade pip setuptools wheel
      - name: 'Install dev-requirements'
        run: pip install -q -r dev-requirements.txt
      - name: 'Install requirements'
        run: pip install -q -r requirements.txt
      - name: 'Flake8'
        run: flake8 docs/conf.py examples pymanopt setup.py tests
      - name: 'Tests'
        run: nose2 tests --verbose --with-coverage
      - name: 'Coveralls'
        if: ${{ matrix.python-version == '3.7' }}
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          COVERALLS_SERVICE_NAME: github
        run: coveralls

Exclude python 3.10 (for now).
Exclude python 3.10 (for now).

Signed-off-by: Sebastian Weichwald <46f1a0bd5592a2f9244ca321b129902a06b53e03@sweichwald.de>
