Skip to content

Commit

Permalink
ci: add pre-commit linting and testing
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardHd committed Jan 7, 2024
1 parent afffad8 commit 574cb9d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ jobs:
- name: Install project
run: poetry install --no-interaction
#----------------------------------------------
# run test suite
# run linting and tests
#----------------------------------------------
- name: Run linting and tests
run: poetry run pre-commit run --all-files --show-diff-on-failure
#----------------------------------------------
# build package
#----------------------------------------------
- name: Run tests
run: poetry run pytest .
- name: Set build version and build package
run: |
poetry version 0.0.1.alpha${{ github.run_number}}
Expand Down

0 comments on commit 574cb9d

Please sign in to comment.