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 9, 2023
1 parent 9e6d2ba commit a795221
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Python Test Suite

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

jobs:
test:
runs-on: ubuntu-latest
container: bigspider/bitcoin_matt
steps:
- name: Run bitcoind
run: |
bitcoind -regtest --daemon
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install pip
run: |
apt-get update
apt-get install -y python3-pip
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Run tests and capture output
run: python -m unittest discover > 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 a795221

Please sign in to comment.