diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 0000000..34642a8 --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,33 @@ +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 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 \ No newline at end of file