Skip to content

Commit

Permalink
Add jobs back
Browse files Browse the repository at this point in the history
  • Loading branch information
fepegar committed Sep 22, 2024
1 parent 846bf64 commit b4a7ea5
Showing 1 changed file with 48 additions and 74 deletions.
122 changes: 48 additions & 74 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ jobs:
matrix:
tox_env:
- types
# - lint
# - format
# - docs

steps:
- name: Checkout repository
Expand All @@ -42,88 +39,65 @@ jobs:
run: tox -e ${{ matrix.tox_env }}


# jobs:

# mypy:
# name: Type checks
# runs-on: ubuntu-latest

# steps:
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: "3.12"

# - name: Checkout repository
# uses: actions/checkout@v4
# with:
# fetch-depth: 0

# - name: Install tox
# run: pip install tox

# - name: Run mypy
# run: tox -e mypy

# flake8:
# name: Code style
# runs-on: ubuntu-latest
flake8:
name: Code style
runs-on: ubuntu-latest

# steps:
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: "3.12"
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

# - name: Checkout repository
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

# - name: Install pre-commit
# run: pip install pre-commit
- name: Install pre-commit
run: pip install pre-commit

# - name: Run flake8 hooks
# run: pre-commit run --all-files flake8
- name: Run flake8 hooks
run: pre-commit run --all-files flake8

# black:
# name: Code formatting
# runs-on: ubuntu-latest
black:
name: Code formatting
runs-on: ubuntu-latest

# steps:
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: "3.12"
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

# - name: Checkout repository
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

# - name: Install black
# run: pip install black
- name: Install black
run: pip install black

# - name: Run black
# run: black --check --diff .
- name: Run black
run: black --check --diff .

# docs:
# name: Documentation
# runs-on: ubuntu-latest
docs:
name: Documentation
runs-on: ubuntu-latest

# steps:
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: "3.12"
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

# - name: Checkout repository
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

# - name: Install pre-commit
# run: pip install pre-commit
- name: Install pre-commit
run: pip install pre-commit

# - name: Run doc8 hook
# run: pre-commit run --all-files doc8
- name: Run doc8 hook
run: pre-commit run --all-files doc8

0 comments on commit b4a7ea5

Please sign in to comment.