Reproduce blacksmith issue #35
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: Tusk Drift API Tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: blacksmith-4vcpu-ubuntu-2404 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt | |
| - name: Run Tusk Drift trace tests | |
| uses: Use-Tusk/drift-action@v1 | |
| with: | |
| cache-key: ${{ runner.os }}-tusk-drift-${{ hashFiles('.tusk/config.yaml') }} | |
| api-key: ${{ secrets.TUSK_DRIFT_API_KEY }} | |
| run-command: tusk run -c -p --ci --validate-suite-if-default-branch --enable-service-logs | |
| - name: Print service logs | |
| if: always() | |
| run: | | |
| for f in .tusk/logs/*.log; do | |
| echo "=== $f ===" | |
| cat "$f" | |
| done |