Skip to content

Commit

Permalink
use makefile to run tests
Browse files Browse the repository at this point in the history
Signed-off-by: Helder Ribeiro <[email protected]>
  • Loading branch information
hjribeiro-moj committed Nov 13, 2024
1 parent 08e689b commit 8d2071a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/reusable-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:

- name: Run unit tests with coverage
id: fast-tests
run: TESTING=True poetry run pytest --cov -m 'not slow and not datahub' --doctest-modules
run: TESTING=True make gha_fast_tests

- name: Set up chromedriver
# https://github.com/marketplace/actions/setup-chromedriver
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ export_npm_cache_dir:
@npm config get cache > .npm_cache_dir
@echo "NPM cache directory stored in .npm_cache_dir"

gha_fast_tests:
poetry run pytest --cov -m 'not slow and not datahub' --doctest-modules


# Clean up (optional)
clean:
rm -rf staticfiles
Expand Down

0 comments on commit 8d2071a

Please sign in to comment.