Skip to content

Update Managed Files (#156) #740

Update Managed Files (#156)

Update Managed Files (#156) #740

Workflow file for this run

name: Tests
on:
push:
branches:
- long_lived/**
- main
- release/**
tags:
- '**'
pull_request:
branches:
- '**'
jobs:
build:
name: Python ${{ matrix.os }} ${{ matrix.python-version }} sample
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# we need fetch-depth 0 so setuptools_scm can resolve tags
- name: Setup python
uses: chia-network/actions/setup-python@main
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[dev]
python -m pip install coverage
python -m pip install coveralls
python -m pip install flake8
- name: flake8
run: flake8 clvm tests --max-line-length=120
- name: mypy
run: mypy
- name: Test with pytest
run: |
pytest tests
coverage run --branch --include=clvm/SExp.py -m pytest tests/as_python_test.py
coverage run -a --branch --include=clvm/serialize.py -m pytest tests/serialize_test.py
coverage run -a --branch --include=clvm/operators.py -m pytest tests/operators_test.py
coverage run -a --branch --source=clvm --omit=clvm/SExp.py,clvm/serialize.py,clvm/operators.py -m pytest tests
coverage report -m
- name: coverall
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coveralls --service=github