Skip to content

Commit

Permalink
Run linting before tests (#98)
Browse files Browse the repository at this point in the history
Mic-4382/lint-before-tests

Update to run lint before tests in build
- *Category*: Other
- *JIRA issue*: [MIC-4382](https://jira.ihme.washington.edu/browse/MIC-4382)

Changes and notes
-Update to run lint before tests in build

Testing
All tests pass
  • Loading branch information
albrja committed Sep 7, 2023
1 parent 820f29a commit e21e5fc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ jobs:
- name: Install dependencies
run: |
pip install .[test,docs]
- name: Lint
run: |
pip install black==22.3.0 isort
black . --check --diff
isort . --check --verbose --only-modified --diff
- name: Test
run: |
pytest ./tests
Expand All @@ -36,8 +41,3 @@ jobs:
- name: Doctest
run: |
make doctest -C docs/
- name: Lint
run: |
pip install black==22.3.0 isort
black . --check --diff
isort . --check --verbose --only-modified --diff

0 comments on commit e21e5fc

Please sign in to comment.