Skip to content

Move & rename MONAD_NEXT to MONAD_NINE #41

Move & rename MONAD_NEXT to MONAD_NINE

Move & rename MONAD_NEXT to MONAD_NINE #41

Workflow file for this run

name: Python Specification
on:
push:
branches:
- master
- mainnet
- "forks/**"
paths-ignore:
- "**.md"
- "LICENSE*"
- ".gitignore"
- ".vscode/**"
- "whitelist.txt"
- "docs/**"
- "mkdocs.yml"
workflow_dispatch:
pull_request:
paths-ignore:
- "**.md"
- "LICENSE*"
- ".gitignore"
- ".vscode/**"
- "whitelist.txt"
- "docs/**"
- "mkdocs.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
jobs:
static:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
with:
submodules: recursive
- name: Ensure SHA pinned actions
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@6124774845927d14c601359ab8138699fa5b70c3 # v4.0.1
- name: Setup Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
with:
python-version: "3.11"
- name: Install Tox and any other packages
shell: bash
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get install --yes --force-yes build-essential pkg-config
pip install 'tox>=4.11,<5' requests
- name: Run static checks
run: tox -e static
- name: Setup uv
uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1
- name: Validate workflow config variables
run: |
cat >> .github/actionlint.yaml << 'EOF'
# CI-only: validate vars.* references
config-variables:
- DEFAULT_PYTHON_VERSION
- UV_VERSION
EOF
uvx --from actionlint-py actionlint
# TODO: tests have been updated without paying attention to filling in pre-monad
# forks. Need to circle back and do proper `if fork >= ...` thing
# py3:
# runs-on: ubuntu-24.04
# needs: static
# steps:
# - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
# with:
# submodules: recursive
# - name: Setup Python
# uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
# with:
# python-version: "3.11"
# - uses: ./.github/actions/setup-env
# - name: Run py3 tests
# run: tox -e py3
# env:
# PYTEST_XDIST_AUTO_NUM_WORKERS: auto
# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7
# with:
# files: .tox/coverage.xml
# flags: unittests
# token: ${{ secrets.CODECOV_TOKEN }}
# pypy3:
# runs-on: ubuntu-24.04
# needs: static
# steps:
# - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
# with:
# submodules: recursive
# - name: Setup Python
# uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
# with:
# python-version: "pypy3.11"
# - uses: ./.github/actions/setup-env
# - name: Run pypy3 tests
# run: tox -e pypy3
# env:
# PYPY_GC_MAX: "2G"
# PYPY_GC_MIN: "1G"