Update map_utils #2598
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test Suite | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: test-${{ github.workflow }}-${{ github.ref_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| #---------------------------------------------- | |
| # check-out repo and set-up python | |
| #---------------------------------------------- | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| #---------------------------------------------- | |
| # install dependencies | |
| #---------------------------------------------- | |
| - name: Install dependencies | |
| shell: bash | |
| run: pip install fused[batch] pytest openpyxl duckdb fiona scipy | |
| #---------------------------------------------- | |
| # get all changed UDFs | |
| #---------------------------------------------- | |
| - name: Get all changed UDFs | |
| id: changed-udfs | |
| if: github.event_name == 'pull_request' | |
| uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46 | |
| with: | |
| separator: "," | |
| files_yaml: | | |
| public: | |
| - public/** | |
| files: | |
| - files/** | |
| tests: | |
| - tests/** | |
| #---------------------------------------------- | |
| # run tests for files udfs | |
| #---------------------------------------------- | |
| - name: Run tests for files udfs | |
| if: github.event_name == 'push' || steps.changed-udfs.outputs.files_any_changed == 'true' || steps.changed-udfs.outputs.tests_any_changed == 'true' | |
| shell: bash | |
| env: | |
| AUTH0_REFRESH_TOKEN: ${{ secrets.AUTH0_REFRESH_TOKEN }} | |
| run: pytest tests/test_file_udfs.py --tb=short | |
| #---------------------------------------------- | |
| # run tests for public udfs | |
| #---------------------------------------------- | |
| - name: Run tests for public udfs | |
| if: github.event_name == 'push' || steps.changed-udfs.outputs.public_any_changed == 'true' || steps.changed-udfs.outputs.tests_any_changed == 'true' | |
| env: | |
| AUTH0_REFRESH_TOKEN: ${{ secrets.AUTH0_REFRESH_TOKEN }} | |
| CHANGED_FILES: ${{ steps.changed-udfs.outputs.public_all_changed_files }} | |
| shell: bash | |
| run: pytest tests/test_public_udfs.py --tb=short | |