Skip to content

Commit

Permalink
CI: small refactoring and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
daywalker90 committed Mar 29, 2024
1 parent 0d122be commit 4794772
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,29 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: rust toolchain
if: ${{ inputs.tagged-release == 'false'}}
- name: Install Python dependencies
run: |
pip3 install --user pyln-proto==${{ inputs.pyln-version }} pyln-client==${{ inputs.pyln-version }} pyln-testing==${{ inputs.pyln-version }}
pip3 install --user pytest-xdist
- name: Set up Rust
if: ${{ inputs.tagged-release == false}}
uses: dtolnay/rust-toolchain@stable

- name: protoc
if: ${{ inputs.tagged-release == 'false'}}
- name: Set up protoc
if: ${{ inputs.tagged-release == false}}
uses: arduino/setup-protoc@v3

- name: Get binary
run: |
if ${{ inputs.tagged-release }}; then
cd tests
./setup.sh
cd ..
else
cargo build
fi
- name: Run tests
run: |
export CLN_PATH=${{ github.workspace }}/lightning
Expand All @@ -74,13 +89,4 @@ jobs:
export TEST_DEBUG=1
export TRAVIS=1
export VALGRIND=0
if ${{ inputs.tagged-release }}; then
cd tests
./setup.sh
cd ..
else
cargo build
fi
pip3 install --user pyln-proto==${{ inputs.pyln-version }} pyln-client==${{ inputs.pyln-version }} pyln-testing==${{ inputs.pyln-version }}
pip3 install --user pytest-xdist
pytest -n=5 tests/test_vitality.py

0 comments on commit 4794772

Please sign in to comment.