Skip to content

Commit

Permalink
Separate code quality step and only run on 3.10 (#793)
Browse files Browse the repository at this point in the history
* Separate code quality step and only run on 3.10

* alibi --> alibi_detect
  • Loading branch information
jklaise authored May 22, 2023
1 parent 133a7a4 commit 0361fbd
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,6 @@ jobs:
with:
limit-access-to-actor: true

- name: Lint with flake8
run: |
flake8 alibi_detect
- name: Typecheck with mypy
run: |
mypy alibi_detect
- name: Test with pytest
run: |
if [ "$RUNNER_OS" == "macOS" ]; then # Avoid numba/OpenMP segfault in CVMDrift (https://github.com/SeldonIO/alibi-detect/issues/648)
Expand All @@ -95,6 +87,29 @@ jobs:
run: |
make build_pypi
code-quality:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade --upgrade-strategy eager -r requirements/dev.txt
python -m pip install --upgrade --upgrade-strategy eager .[all]
- name: Lint with flake8
run: |
flake8 alibi_detect
- name: Typecheck with mypy
run: |
mypy alibi_detect
docs:
if: github.event.pull_request.draft == false
Expand Down

0 comments on commit 0361fbd

Please sign in to comment.