Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryamanz29 committed Jan 23, 2024
1 parent 314913a commit c638d3e
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 59 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Pytest cron job
name: pyatlan cron

on:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 1 * * *' # At 01:00 Daily
Expand Down Expand Up @@ -39,24 +38,4 @@ jobs:
MARK_BASE_URL: https://mark.atlan.com
run: |
pytest tests/unit
pytest tests/integration/connection_test.py --ignore tests/integration/data_mesh_test.py --store-durations
- name: Check for changes in .test_durations
if: success()
run: |
if [ -n "$(git diff --exit-code .test_durations)" ]; then
echo "Changes detected in .test_durations"
else
echo "No changes in .test_durations, exiting."
exit 78 # 78 is used as a custom exit code to skip subsequent steps
fi
- uses: actions/checkout@v3
- name: Commit and push test durations on success
if: success()
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add .test_durations
git commit -m "Update test durations"
git push
pytest tests/integration --ignore tests/integration/data_mesh_test.py
2 changes: 1 addition & 1 deletion .github/workflows/pyatlan-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
MARK_API_KEY: ${{ secrets.MARK_ATLAN_API_KEY }}
MARK_BASE_URL: https://mark.atlan.com
run: |
DISTRIBUTED_TESTS=$(python3 st.py)
DISTRIBUTED_TESTS=$(python3 distribute_integration_tests.py)
TEST_FILES=$(echo "${DISTRIBUTED_TESTS}" | jq -r --arg targetJob "${{ matrix.job_id }}" '.[$targetJob].test_files[]' | tr '\n' ' ')
echo "Running ${TEST_FILES}"
pytest ${TEST_FILES}
27 changes: 0 additions & 27 deletions .sample

This file was deleted.

8 changes: 0 additions & 8 deletions .sample-test

This file was deleted.

File renamed without changes.

0 comments on commit c638d3e

Please sign in to comment.