---
name: SoCo

on:
  push:
    branches:
      - master
      - 'v0.28.fixes'
  pull_request:
    branches:
      - master
      - 'v0.28.fixes'

jobs:
  SoCo-Check-Jobs:
    name: SoCo Check Jobs (${{ matrix.python-version }})
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        python-version: [3.6, 3.7, 3.8, 3.9, "3.10", "3.11-dev"]
    steps:
      - uses: actions/checkout@v2
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python-version }}
      - name: Install dependencies
        run: |
          sudo apt-get install graphviz
          python -m pip install --upgrade pip
          pip install -e .
          pip install -r requirements.txt
          pip install -r requirements-dev.txt
      - name: Lint with flake8 and pylint
        run: |
          # stop the build if there are Python syntax errors or undefined names
          flake8 soco
          flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
          pylint soco
      - name: Test with pytest
        run: |
          pytest --cov-config .coveragerc --cov soco .
      - name: Test formatting with Black
        run: |
          black --check soco tests
      - name: Test documentation build
        if: matrix.python-version == 3.9
        run: |
          make docs

---
name: SoCo

on:
  push:
    branches:
      - master
      - 'v0.28.fixes'
  pull_request:
    branches:
      - master
      - 'v0.28.fixes'

jobs:
  SoCo-Check-Jobs:
    name: SoCo Check Jobs (${{ matrix.python-version }})
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        python-version: [3.6, 3.7, 3.8, 3.9, "3.10", "3.11"]
    steps:
      - uses: actions/checkout@v2
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python-version }}
      - name: Install dependencies
        run: |
          sudo apt-get install graphviz
          python -m pip install --upgrade pip
          pip install -e .
          pip install -r requirements.txt
          pip install -r requirements-dev.txt
      - name: Lint with flake8 and pylint
        run: |
          # stop the build if there are Python syntax errors or undefined names
          flake8 soco
          flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
          pylint soco
      - name: Test with pytest
        run: |
          pytest --cov-config .coveragerc --cov soco .
      - name: Test formatting with Black
        run: |
          black --check soco tests
      - name: Test documentation build
        if: matrix.python-version == 3.9
        run: |
          make docs

Switch from Python '3.11-dev' to '3.11' in the test matrix
Switch from Python '3.11-dev' to '3.11' in the test matrix
