name: Backend workflow
on:
  push:
    branches:
      - '*'
      - '*/*'
      - '**'
      - '!master'
      - '!production'
    paths-ignore:
      - '**.md'
  pull_request:
    paths-ignore:
      - '**.md'
jobs:
  mypy:
    name: Mypy
    runs-on: ${{ matrix.operating-system }}
    strategy:
      matrix:
        operating-system: [ubuntu-20.04.4]
    steps:
    - name: Checkout
      uses: actions/checkout@v2
    - uses: actions/setup-python@v2
      with:
        python-version: 3.x
    - run: pip install --upgrade pip
    - run: pip install mypy==v0.902
    - run: mypy pfamserver tests
  quality:
    name: Quality
    runs-on: ${{ matrix.operating-system }}
    strategy:
      matrix:
        operating-system: [ubuntu-20.04.4]
    steps:
    - name: Checkout
      uses: actions/checkout@v2
    - uses: actions/setup-python@v2
      with:
        python-version: 3.x
    - run: pip install --upgrade pip
    - run: pip install docstyle radon
    - run: pydocstyle pfamserver
    - run: radon cc -nb -a pfamserver

name: Backend workflow
on:
  push:
    branches:
      - '*'
      - '*/*'
      - '**'
      - '!master'
      - '!production'
    paths-ignore:
      - '**.md'
  pull_request:
    paths-ignore:
      - '**.md'
jobs:
  mypy:
    name: Mypy
    runs-on: ${{ matrix.operating-system }}
    strategy:
      matrix:
        operating-system: [ubuntu-latest]
    steps:
    - name: Checkout
      uses: actions/checkout@v2
    - uses: actions/setup-python@v2
      with:
        python-version: 3.x
    - run: pip install --upgrade pip
    - run: pip install mypy==v0.902
    - run: mypy pfamserver tests
  quality:
    name: Quality
    runs-on: ${{ matrix.operating-system }}
    strategy:
      matrix:
        operating-system: [ubuntu-latest]
    steps:
    - name: Checkout
      uses: actions/checkout@v2
    - uses: actions/setup-python@v2
      with:
        python-version: 3.x
    - run: pip install --upgrade pip
    - run: pip install docstyle radon
    - run: pydocstyle pfamserver
    - run: radon cc -nb -a pfamserver

Set ubuntu latest on github actions.
Set ubuntu latest on github actions.
