Skip to content

Commit

Permalink
ci: enable flake & mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
makkus committed Jan 21, 2023
1 parent 85f1eba commit 299c248
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions .github/workflows/build-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,45 +53,45 @@ jobs:
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}""

# mypy-linux:
# name: mypy check on linux
# runs-on: ubuntu-latest
# strategy:
# matrix:
# python_version: ["3.8", "3.9", "3.10", "3.11"]
# steps:
# - name: "Set up Python ${{ matrix.python_version }}"
# uses: actions/setup-python@v4
# with:
# python-version: "${{ matrix.python_version }}"
# - uses: actions/checkout@v3
# - name: install kiara_plugin.jupyter
# run: pip install -U --extra-index-url https://pypi.fury.io/dharpa/ .[all,dev_testing]
# - name: Test with mypy
# run: make mypy
mypy-linux:
name: mypy check on linux
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- name: "Set up Python ${{ matrix.python_version }}"
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python_version }}"
- uses: actions/checkout@v3
- name: install kiara_plugin.jupyter
run: pip install -U --extra-index-url https://pypi.fury.io/dharpa/ .[all,dev_testing]
- name: Test with mypy
run: make mypy

# flake8-linux:
# name: flake8 on linux
# runs-on: ubuntu-latest
# steps:
# - name: Set up Python 3.9
# uses: actions/setup-python@v4
# with:
# python-version: "3.9"
# - uses: actions/checkout@v3
# - name: install kiara_plugin.jupyter
# run: pip install -U --extra-index-url https://pypi.fury.io/dharpa/ .[all,dev_testing]
# - name: Test with flake8
# run: make flake
flake8-linux:
name: flake8 on linux
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: "3.9"
- uses: actions/checkout@v3
- name: install kiara_plugin.jupyter
run: pip install -U --extra-index-url https://pypi.fury.io/dharpa/ .[all,dev_testing]
- name: Test with flake8
run: make flake

build-docs:
name: build documentation
if: ${{ github.ref == 'refs/heads/develop' }} || ${{ github.ref == 'refs/heads/main' }} || startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs:
- test-linux
# - mypy-linux
# - flake8-linux
- mypy-linux
- flake8-linux
steps:
- name: Set up Python 3.9
uses: actions/setup-python@v4
Expand Down Expand Up @@ -119,8 +119,8 @@ jobs:
runs-on: ubuntu-latest
needs:
- test-linux
# - mypy-linux
# - flake8-linux
- mypy-linux
- flake8-linux
env:
GEMFURY_PUSH_TOKEN: ${{ secrets.GEMFURY_PUSH_TOKEN }}
steps:
Expand Down Expand Up @@ -155,8 +155,8 @@ jobs:
runs-on: ubuntu-latest
needs:
- test-linux
# - mypy-linux
# - flake8-linux
- mypy-linux
- flake8-linux
steps:
- name: "Set up Python 3.9"
uses: actions/setup-python@v4
Expand Down Expand Up @@ -188,8 +188,8 @@ jobs:
if: ${{ startsWith(github.ref, 'refs/tags') }}
needs:
- test-linux
# - mypy-linux
# - flake8-linux
- mypy-linux
- flake8-linux
steps:
- uses: actions/checkout@v3
with:
Expand Down

0 comments on commit 299c248

Please sign in to comment.