Skip to content

fix: Python plugin integration tests on CI #1127

fix: Python plugin integration tests on CI

fix: Python plugin integration tests on CI #1127

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest]
node-version: [18, 20]
python-version: ['3.10']
runs-on: ${{ matrix.platform }}
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Use Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Use Poetry
uses: abatilo/actions-poetry@v2
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Install Node.js dependencies
run: npm ci
- name: Install Python dependencies
run: poetry config virtualenvs.in-project true && ln -s ${{ pythonLocation }}/bin/python /usr/bin/python3 && npm run python:install

Check failure on line 40 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 40, Col: 14): Unrecognized named-value: 'pythonLocation'. Located at position 1 within expression: pythonLocation
- name: Start containers
run: npm run docker:regtest && npm run docker:solidity
- name: Mine block
run: docker exec regtest bitcoin-cli -generate 1
- name: Check python
run: docker exec regtest ls -la /tools/.venv/bin
- name: Python integration tests
run: npm run python:test