Fix mi tests #319
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
name: PR | |
on: | |
pull_request: | |
push: | |
branches: [ master, debugging ] | |
tags: | |
- "v*.*.*" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
pr: | |
strategy: | |
matrix: | |
python-version: [3.9] | |
step: ['test'] | |
# step: ['lint', 'test:chain'] | |
name: ${{ matrix.step }} | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
python3 -m pip install -U pip setuptools | |
python3 -m pip install pyeoskit | |
- name: Install EOS test framework | |
if: ${{ matrix.os != 'windows-latest' }} | |
run: | | |
python3 -m pip install ipyeos==0.3.11 | |
- name: Run eos-debugger | |
if: ${{ matrix.os != 'windows-latest' }} | |
run: | | |
PYTHON_SHARED_LIB_PATH=${{ env.pythonLocation }}/lib/libpython3.9.so eosdebugger & | |
- name: ${{ matrix.step }} | |
run: | | |
yarn install --immutable | grep -v 'YN0013' | |
PYTHON_SHARED_LIB_PATH=${{ env.pythonLocation }}/lib/libpython3.9.so yarn ${{ matrix.step }} | |
# - name: Setup upterm session | |
# if: ${{ startsWith(github.ref, 'refs/heads/master') && matrix.os == 'ubuntu-20.04' }} | |
# uses: lhotari/action-upterm@v1 | |
- name: publish chaintester & asm-contract & asm-chain | |
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-20.04' }} | |
run: | |
pushd ./ts-packages/transform | |
npm publish | |
popd | |
pushd ./ts-packages/chaintester | |
npm publish | |
popd | |
pushd ./as-packages/chain | |
npm publish | |
popd | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |