Skip to content

set plaintext as fallback ifmt #289

set plaintext as fallback ifmt

set plaintext as fallback ifmt #289

Workflow file for this run

name: tests
on: ['push', 'pull_request', 'workflow_call']
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-20.04']
python-version:
- '3.7'
- '3.8'
- '3.9'
- 'pypy-3.7'
- 'pypy-3.8'
- 'pypy-3.9'
- 'pypy-3.10'
tox-env: ['essential']
include:
- os: macos-latest
python-version: '3.12'
tox-env: essential
- os: windows-latest
python-version: '3.11'
tox-env: essential
- os: ubuntu-latest
python-version: '3.10'
tox-env: extended
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
pip install --quiet --upgrade tox>=4.5.1
- name: Run essential tests
if: ${{ matrix.tox-env != 'extended' }}
run: |
tox run -e ${{ matrix.tox-env }}
- name: Run linters and coverage
if: ${{ matrix.tox-env == 'extended' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip install --quiet --upgrade coveralls
tox run -e ${{ matrix.tox-env }}
coveralls --service=github