Skip to content

Switch from tab to 4 spaces in baseline #407

Switch from tab to 4 spaces in baseline

Switch from tab to 4 spaces in baseline #407

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python package
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
name: Test Python ${{ matrix.python-version }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox
test-pre-commit-console-encoding:
# Ref.: https://github.com/jsh9/pydoclint/issues/20
name: Test pre-commit console encoding
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
# This is just a sanity check, so we only run it on one Python version
# in order to save some time
python-version: "3.8"
- name: Run check-self with pre-commit
run: |
python -m pip install --upgrade pip
python -m pip install pre-commit -e .
python -m pre_commit run -c .github/.pre-commit-config-self-check.yaml check-self --all