Skip to content

Exclude changes in doc and README from linting wf. #220

Exclude changes in doc and README from linting wf.

Exclude changes in doc and README from linting wf. #220

Workflow file for this run

# This action is based on Github's default starter workflow for Python at

Check failure on line 1 in .github/workflows/linter.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/linter.yml

Invalid workflow file

`pull_request'` is not a valid event name
# https://github.com/actions/starter-workflows/blob/master/ci/python-package.yml
# (C) Github, MIT License
name: Python package
on:
push:
branches:
- develop
paths-ignore:
- 'docs/**'
- 'README.md'
- '_quarto.yml'
- 'index.qmd'
pull_request':
branches:
- develop
paths-ignore:
- 'docs/**'
- 'README.md'
- '_quarto.yml'
- 'index.qmd'
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
include:
- os: windows-latest
python-version: "3.11"
- os: macos-latest
python-version: "3.11"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[test]
- name: Lint with Ruff
run: |
ruff check ibridgesgui
- name: Lint with PyLint
run: |
pylint ibridgesgui