name: build

on: [push, pull_request]

jobs:
  build:

    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-20.04]
        python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
    runs-on: ${{ matrix.os }}

    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 -qq update && sudo apt-get install -y libtest-exception-perl libtest-output-perl libdevel-cover-perl acl cpanminus libcgi-pm-perl perl-doc
        pip install codecov flask pytest-cov pytest-flake8 coverage scons
    - name: Test
      run: |
        scons python=$(which python) test
        flake8 --exclude doc/conf.py,tools/reindent.py,examples .
        py.test --cov=account/account --cov-branch account
    - name: Upload Python coverage to codecov
      uses: codecov/codecov-action@v1

name: build

on: [push, pull_request]

jobs:
  build:

    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-22.04]
        python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
    runs-on: ${{ matrix.os }}

    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 -qq update && sudo apt-get install -y libtest-exception-perl libtest-output-perl libdevel-cover-perl acl cpanminus libcgi-pm-perl perl-doc
        pip install codecov flask pytest-cov pytest-flake8 coverage scons
    - name: Test
      run: |
        scons python=$(which python) test
        flake8 --exclude doc/conf.py,tools/reindent.py,examples .
        py.test --cov=account/account --cov-branch account
    - name: Upload Python coverage to codecov
      uses: codecov/codecov-action@v1

Switch CI to latest Ubuntu
Switch CI to latest Ubuntu
