Skip to content

Update chia-blockchain to 2.1.0, fix tests, and other updates #1

Update chia-blockchain to 2.1.0, fix tests, and other updates

Update chia-blockchain to 2.1.0, fix tests, and other updates #1

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- '**'
jobs:
test:
name: Python tests
runs-on: ubuntu-latest
steps:
- name: Clean workspace
uses: Chia-Network/actions/clean-workspace@main
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup Python
uses: Chia-Network/actions/setup-python@main
with:
python-version: '3.10'
- name: Create virtual environment
uses: Chia-Network/actions/create-venv@main
id: create-venv
- name: Activate virtual environment
uses: Chia-Network/actions/activate-venv@main
with:
directories: ${{ steps.create-venv.outputs.activate-venv-directories }}
- name: Create virtual environment for Poetry
uses: Chia-Network/actions/create-venv@main
id: create-poetry-venv
- name: Run poetry install
uses: Chia-Network/actions/poetry@main
with:
python-executable: ${{ steps.create-poetry-venv.outputs.python_executable }}
poetry-command: "install --with dev"
- name: Run Python tests
run: pytest tests