Skip to content

Commit

Permalink
Combine ci linter jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez authored Oct 16, 2023
1 parent b7c1c8f commit 5924072
Showing 1 changed file with 13 additions and 41 deletions.
54 changes: 13 additions & 41 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,60 +14,32 @@ concurrency:
cancel-in-progress: true

jobs:
lint-pycodestyle:
name: Code style check with pycodestyle
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Merge CI fixes from sagemath/sage
run: |
.ci/merge-fixes.sh
env:
GH_TOKEN: ${{ github.token }}

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install pycodestyle
run: pip install tox pycodestyle
- name: Lint using pycodestyle

- name: Install dependencies
run: pip install tox pycodestyle relint

- name: Code style check with pycodestyle
run: tox -e pycodestyle-minimal
lint-relint:
name: Code style check with relint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Merge CI fixes from sagemath/sage
run: |
.ci/merge-fixes.sh
env:
GH_TOKEN: ${{ github.token }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install relint
run: pip install tox relint
- name: Lint using relint

- name: Code style check with relint
run: tox -e relint -- src/sage/
lint-rst:
name: Validate docstring markup as RST
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Merge CI fixes from sagemath/sage
run: |
.ci/merge-fixes.sh
env:
GH_TOKEN: ${{ github.token }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install tox
run: pip install tox
- name: Lint using tox -e rst

- name: Validate docstring markup as RST
run: tox -e rst

0 comments on commit 5924072

Please sign in to comment.