Skip to content

Fixed issue relate to number of argument being passed to migrate function of l2_migration_contract #545

Fixed issue relate to number of argument being passed to migrate function of l2_migration_contract

Fixed issue relate to number of argument being passed to migrate function of l2_migration_contract #545

Workflow file for this run

name: Python CI
on:
push:
branches:
- main
pull_request:
release:
types: [ released ]
jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files
test-app:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Create Ganache network
run: docker network create ganache
- name: Setup and run ganache
run: docker run --detach --publish 8545:8545 --network ganache -e DOCKER=true trufflesuite/ganache:latest --defaultBalanceEther 10000 --gasLimit 10000000 -a 30 --chain.chainId 1337 --chain.networkId 1337 -d
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'requirements*.txt'
- name: Install dependencies
run: |
pip install -r requirements-test.txt coveralls pre-commit
pip install -e .
env:
PIP_USE_MIRRORS: true
- name: Run tests and coverage
run: |
coverage run -m pytest -rxXs
coverage combine
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
flag-name: run-${{ matrix.python-version }}
parallel: true
finish:
needs: test-app
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
publish:
runs-on: ubuntu-latest
needs: test-app
if: github.event_name == 'release' && github.event.action == 'released'
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: 'pip'
cache-dependency-path: 'requirements*.txt'
- name: Deploy Package
run: |
python -m pip install --upgrade build twine
python -m build
twine check dist/*
twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
docker-deploy:
runs-on: ubuntu-latest
needs: test-app
if: github.event_name == 'release' && github.event.action == 'released'
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- uses: docker/setup-buildx-action@v3
- name: Dockerhub login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Deploy Tag
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
push: true
tags: |
safeglobal/safe-cli:${{ github.event.release.tag_name }}
safeglobal/safe-cli:latest
platforms: |
linux/amd64
linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max