feat(strategy): require real crypto performance evidence #280
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: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| set -euo pipefail | |
| REQ_FILE="requirements-lock.txt" | |
| if [ ! -f "$REQ_FILE" ]; then REQ_FILE="requirements.txt"; fi | |
| python -m pip install --upgrade pip | |
| python -m pip install -r "$REQ_FILE" | |
| python -m pip install ruff | |
| - name: Verify dependencies | |
| run: | | |
| set -euo pipefail | |
| python -m pip check | |
| - name: Run ruff | |
| run: | | |
| set -euo pipefail | |
| ruff check . | |
| - name: Run unit tests | |
| run: | | |
| set -euo pipefail | |
| python -m unittest discover -s tests -v |