Skip to content

chore: update moderato escrow contract address (#86) #302

chore: update moderato escrow contract address (#86)

chore: update moderato escrow contract address (#86) #302

Workflow file for this run

name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci-gate:
name: CI Gate
if: always()
needs: [test, package]
runs-on: ubuntu-latest
steps:
- run: |
if [[ "${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
echo "One or more required jobs failed or were cancelled"
exit 1
fi
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: "pyproject.toml"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --all-extras --dev
- name: Lint
if: matrix.python-version == '3.12'
run: |
uv run ruff check .
uv run ruff format --check .
- name: Add venv to PATH
if: matrix.python-version == '3.12'
run: echo "$PWD/.venv/bin" >> $GITHUB_PATH
- name: Type check
if: matrix.python-version == '3.12'
uses: jakebailey/pyright-action@v3
with:
version: PATH
- name: Run tests
run: uv run pytest -v --cov=mpp --cov-report=term-missing --cov-fail-under=90
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: "pyproject.toml"
- name: Set up Python
run: uv python install 3.12
- name: Install dependencies
run: uv sync --dev
- name: Build and validate package
run: |
uv run python -m build
uv run twine check --strict dist/*