name: tests

on: [push, pull_request]

jobs:
  test:
    strategy:
      matrix:
        python: ['3.8', '3.9', '3.10', pypy-3.8]
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Setup Python
        uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python }}
      - name: Install Python dependencies
        run: |
          python -m pip install Markdown python-markdown-math pymdown-extensions
          python -m pip install docutils textile pygments codecov PyYAML
          python -m pip install lxml asciidoc
      - name: Install the project
        run: python setup.py install
      - name: Run tests
        run: coverage run -m unittest discover -s tests -v
      - name: Run the doctest
        run: python -m doctest README.rst -v
      - name: Upload reports to Codecov
        if: ${{ matrix.python == '3.10' }}
        run: codecov
  pyflakes:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-python@v2
      - name: Install pyflakes
        run: python -m pip install pyflakes
      - name: Run pyflakes
        run: python -m pyflakes markups/ tests/

name: tests

on: [push, pull_request]

jobs:
  test:
    strategy:
      matrix:
        python: ['3.8', '3.9', '3.10', pypy-3.8]
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Setup Python
        uses: actions/setup-python@v4
        with:
          python-version: ${{ matrix.python }}
      - name: Install Python dependencies
        run: |
          python -m pip install Markdown python-markdown-math pymdown-extensions
          python -m pip install docutils textile pygments codecov PyYAML
          python -m pip install lxml asciidoc
      - name: Install the project
        run: python setup.py install
      - name: Run tests
        run: coverage run -m unittest discover -s tests -v
      - name: Run the doctest
        run: python -m doctest README.rst -v
      - name: Upload reports to Codecov
        if: ${{ matrix.python == '3.10' }}
        run: codecov
  pyflakes:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-python@v2
      - name: Install pyflakes
        run: python -m pip install pyflakes
      - name: Run pyflakes
        run: python -m pyflakes markups/ tests/

Update to latest versions of actions
Update to latest versions of actions
