Skip to content

style: linting

style: linting #66

Workflow file for this run

name: TestSuite
on:
pull_request:
push:
branches:
- main
jobs:
pre-commit:
name: Run linters with pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.8'
cache: 'pip'
- name: Install dependencies
run: pip install -e '.[dev]'
- name: Run pre-commit hooks
run: SKIP=no-commit-to-branch pre-commit run --all-files --show-diff-on-failure
testing:
needs: [pre-commit]
strategy:
fail-fast: false
matrix:
os: ["ubuntu-20.04", "ubuntu-22.04", "macos-12", "windows-2022"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: pip install -e '.[dev]'
- name: Setup default linchemin configuration
run: linchemin_configure
- name: Run Tests
run: python -m pytest -v