Skip to content

Commit

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

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

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

Testing
All tests pass
  • Loading branch information
albrja committed Sep 7, 2023
1 parent 5ce967f commit 5bbf7ad
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 @@ -95,6 +95,11 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install .[docs,test]
- 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 @@ -105,8 +110,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 5bbf7ad

Please sign in to comment.