Update skale.py #1710
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: Test | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python-version: [3.9] | |
env: | |
ETH_PRIVATE_KEY: ${{ secrets.ETH_PRIVATE_KEY }} | |
ENDPOINT: ${{ secrets.ENDPOINT }} | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
MANAGER_TAG: "1.9.3-beta.0" | |
SGX_WALLET_TAG: "1.83.0-beta.5" | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install ubuntu dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install libssl-dev | |
sudo apt-get install python-setuptools | |
sudo apt-get install libudev-dev | |
sudo apt-get install libusb-1.0-0-dev | |
- name: Install python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e . | |
pip install -e .[dev] | |
pip install --upgrade 'setuptools==63.2.0' | |
- name: Lint with flake8 | |
run: | | |
flake8 . | |
- name: Build binary in 20.04 environment | |
run: | | |
mkdir dist | |
docker build . -t builder | |
docker run -v /home/ubuntu/dist:/app/dist builder scripts/build.sh test test | |
ls -altr /home/ubuntu/dist/ | |
docker rm -f $(docker ps -aq) | |
- name: Build binary in Ubuntu lastest environment | |
run: | | |
scripts/build.sh test test | |
- name: Deploy manager contracts | |
run: | | |
bash ./helper-scripts/deploy_test_manager.sh | |
- name: Prepare configs | |
run: | | |
bash ./scripts/prepare_configs.sh | |
- name: Run tests | |
run: | | |
bash ./scripts/run_tests.sh | |
- name: Codecov | |
run: | | |
codecov -t $CODECOV_TOKEN |