Skip to content

Commit

Permalink
Move code-quality into its own job.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgautier committed Dec 24, 2023
1 parent a00fb0d commit e1b5f8a
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,19 @@ name: Python package
on: [push, pull_request]

jobs:
code-quality:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Python.
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Lint with flake8
run: |
pip install flake8
flake8 rpy2_r6 --count --max-complexity=10 --max-line-length=127 --statistics
build:

runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
Expand All @@ -30,10 +41,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install rpy2
- name: Lint with flake8
run: |
pip install flake8
flake8 rpy2_r6 --count --max-complexity=10 --max-line-length=127 --statistics
- name: Install package
run: |
python setup.py install
Expand Down

0 comments on commit e1b5f8a

Please sign in to comment.