From f7258a5a683cd44467c085d6f2ac38a488ed628c Mon Sep 17 00:00:00 2001 From: michael1011 Date: Sat, 12 Aug 2023 14:15:08 +0200 Subject: [PATCH] fix: Python plugin integration tests on CI --- .github/workflows/ci.yml | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9a68f2d35..295633cb3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,31 +37,16 @@ jobs: run: npm ci - name: Install Python dependencies - run: poetry config virtualenvs.in-project true && npm run python:install + run: poetry config virtualenvs.in-project true && ln -s ${{ pythonLocation }}/bin/python /usr/bin/python3 && npm run python:install - name: Start containers run: npm run docker:regtest && npm run docker:solidity - - name: Deploy Ethereum contracts - run: npm run docker:solidity:deploy + - name: Mine block + run: docker exec regtest bitcoin-cli -generate 1 - - name: Compile - run: npm run compile - - - name: Prettier - run: npm run prettier:check - - - name: Lint - run: npm run lint - - - name: Python lint - run: npm run python:lint - - - name: Unit tests - run: npm run test:unit - - - name: Integration tests - run: node run-int.js + - name: Check python + run: docker exec regtest ls -la /tools/.venv/bin - name: Python integration tests - run: chmod -R 777 tools/.venv && npm run python:test + run: npm run python:test