Skip to content

Commit

Permalink
Create linter.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
chStaiger authored May 27, 2024
1 parent 9ff8863 commit 58e39b6
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This action is based on Github's default starter workflow for Python at
# https://github.com/actions/starter-workflows/blob/master/ci/python-package.yml
# (C) Github, MIT License

name: Python package

on:
push:
branches:
- develop
pull_request:
branches:
- develop

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

0 comments on commit 58e39b6

Please sign in to comment.