Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
maximemuldermcgill committed Sep 6, 2024
1 parent 6a79f7c commit 2d639f8
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 42 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/flake8_python_linter.yml

This file was deleted.

54 changes: 54 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This workflow runs flake8 with reviewdog. The documentation can be found below:
# https://github.com/marketplace/actions/run-flake8-with-reviewdog
# Flake8 is a Python linter that analyzes code and checks for programming and stylistic errors
name: Flake8 Linter

# This workflow acts only on pull requests
on: pull_request

jobs:

setup:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.11", "3.12"]

steps:
- name: Check out source repository
uses: actions/checkout@v4

- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Python dependencies
run: pip install -r python/requirements.txt

ruff:
runs-on: ubuntu-latest
needs: setup

steps:
- name: Run Ruff
run: ruff check

pyright-strict:
runs-on: ubuntu-latest
needs: setup

steps:
- name: Run Pyright
run: pyright

pyright-loose:
runs-on: ubuntu-latest
needs: setup

steps:
- name: Run Pyright
run: |
cd test
pyright

0 comments on commit 2d639f8

Please sign in to comment.