Update challenge params after payment if needed. #28
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: Tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| ruff: | |
| # disabled until after a repo-wide ruff pass | |
| if: ${{ false }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | |
| with: | |
| enable-cache: true | |
| python-version: "3.12" | |
| - name: Install pinned lint dependencies | |
| run: uv sync --locked --group lint | |
| - name: Run Ruff | |
| run: uv run --frozen --group lint ruff check . | |
| pytest: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | |
| with: | |
| enable-cache: true | |
| python-version: "3.12" | |
| - name: Install locked test dependencies | |
| run: uv sync --locked --group test | |
| - name: Run pytest with coverage | |
| run: uv run --frozen --group test pytest --cov=livepeer_gateway --cov-branch --cov-report=term-missing |