Skip to content

avoid use of mutable parameter default for operators_for_dict() and… #655

avoid use of mutable parameter default for operators_for_dict() and…

avoid use of mutable parameter default for operators_for_dict() and… #655

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']
steps:
- uses: actions/checkout@v3
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: Test with pytest
run: |
py.test 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