Skip to content

Commit

Permalink
swsitch job order
Browse files Browse the repository at this point in the history
  • Loading branch information
clavedeluna committed May 26, 2023
1 parent 8a175bd commit 1f42fed
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,24 @@ concurrency:
cancel-in-progress: true

jobs:
linting:
name: Pylint Checks
runs-on: ubuntu-20.04
needs:
- complexity
timeout-minutes: 3
steps:
- name: Set Up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Check out code
uses: actions/checkout@v3
- name: Install Dependencies
run: pip install -r requirements/lint.txt
- name: Run pylint
run: pylint codemodder/ tests/

complexity:
name: Code Complexity
runs-on: ubuntu-20.04
Expand All @@ -37,22 +55,3 @@ jobs:
# threshold for pipeline to fail if we go below average, module, or block complexity
# https://github.com/rubik/xenon
xenon codemodder --max-average A --max-modules B --max-absolute B
linting:
name: Pylint Checks
runs-on: ubuntu-20.04
needs:
- complexity
timeout-minutes: 3
steps:
- name: Set Up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Check out code
uses: actions/checkout@v3
- name: Install Dependencies
run: pip install -r requirements/lint.txt
- name: Run pylint
run: pylint codemodder/ tests/

0 comments on commit 1f42fed

Please sign in to comment.