Skip to content

Bump protobuf from 3.11.3 to 7.34.0rc1 #33

Bump protobuf from 3.11.3 to 7.34.0rc1

Bump protobuf from 3.11.3 to 7.34.0rc1 #33

Workflow file for this run

name: Full Tests & Coverage
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']
services:
docker:
image: docker:19.03.12
options: --privileged
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install --upgrade setuptools wheel
pip install -r requirements_dev.txt
pip install -r requirements.txt
- name: Install docker-compose
run: |
sudo curl -L "https://github.com/docker/compose/releases/download/v2.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
- name: Start Docker services
run: |
docker-compose -f ./local_test_nodes/docker-compose.yml up -d
sleep 10
- name: Run tests
run: |
pytest --cov-report=html --cov=aergo/ tests/
mypy -p aergo -p tests
flake8 --exclude=*_pb2_grpc.py,*_pb2.py,aergo_conf.py --ignore=E722,W503 --per-file-ignores="__init__.py:F401" aergo tests
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
- name: Stop Docker services
run: docker-compose -f ./local_test_nodes/docker-compose.yml down
if: always()