-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
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.9' | ||
- name: Install pip | ||
run: | | ||
apt-get update | ||
apt-get install -y python3-pip | ||
- name: Clone | ||
uses: actions/checkout@v2 | ||
- name: Install pymatt | ||
run: | | ||
pip install . | ||
- 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 |