Skip to content

Commit

Permalink
Change: force pytest-sugar inside a workflow container
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryamanz29 committed Feb 23, 2024
1 parent ed725aa commit 38711a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/pyatlan-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ jobs:
ATLAN_BASE_URL: ${{ secrets.ATLAN_BASE_URL }}
MARK_API_KEY: ${{ secrets.MARK_ATLAN_API_KEY }}
MARK_BASE_URL: https://mark.atlan.com
run: pytest tests/unit
# Run with `pytest-sugar` for enhancing the overall test report output
run: pytest tests/unit --force-sugar

- name: Prepare integration tests distribution
id: distribute-integration-test-files
Expand Down Expand Up @@ -80,5 +81,5 @@ jobs:
MARK_API_KEY: ${{ secrets.MARK_ATLAN_API_KEY }}
MARK_BASE_URL: https://mark.atlan.com
# Run the integration test file using `pytest-timer` plugin
# to display only the durations of the 10 slowest tests
run: pytest ${{ matrix.test_file }} -p name_of_plugin --timer-top-n 10
# to display only the durations of the 10 slowest tests with `pytest-sugar`
run: pytest ${{ matrix.test_file }} -p name_of_plugin --timer-top-n 10 --force-sugar
6 changes: 3 additions & 3 deletions .github/workflows/pyatlan-test-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
MARK_API_KEY: ${{ secrets.MARK_ATLAN_API_KEY }}
MARK_BASE_URL: https://mark.atlan.com
# Run the integration test suite using the `pytest-timer` plugin
# to display only the durations of the 25 slowest tests
# to display only the durations of the 25 slowest tests with `pytest-sugar`
run: |
pytest tests/unit
pytest tests/integration --ignore tests/integration/data_mesh_test.py -p name_of_plugin --timer-top-n 25
pytest tests/unit --force-sugar
pytest tests/integration --ignore tests/integration/data_mesh_test.py -p name_of_plugin --timer-top-n 25 --force-sugar

0 comments on commit 38711a8

Please sign in to comment.