Skip to content

Commit

Permalink
Run tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bigspider committed Dec 10, 2023
1 parent 15cc354 commit 5c49c87
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Python Test Suite

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
runs-on: ubuntu-20.04
container: bigspider/bitcoin_matt
steps:
- name: Run MATT-enabled bitcoind
run: |
bitcoind -regtest --daemon
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install pip and pytest
run: |
apt-get update
apt-get install -y python3-pip
pip install -U pytest
- name: Clone
uses: actions/checkout@v2
- name: Install pymatt
run: |
pip install .
- name: Add repository root to PYTHONPATH
run: echo "PYTHONPATH=$PWD" >> $GITHUB_ENV
- name: Run tests and capture output
run: pytest -vv | tee test_output.txt
- name: Upload test output as artifact
uses: actions/upload-artifact@v2
with:
name: test-output
path: test_output.txt

0 comments on commit 5c49c87

Please sign in to comment.