Skip to content

Commit 070c983

Browse files
Add CI workflow to run sample app
1 parent 26209b4 commit 070c983

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

‎.github/workflows/run-sample.yml‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Run sample app
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: [main]
9+
10+
env:
11+
MONERO_PYTHON_VERSION: v0.9.1
12+
MONERO_PYTHON_DEB: python3-monero_0.9.1-1noble1_amd64.deb
13+
14+
jobs:
15+
run-sample:
16+
runs-on: ubuntu-24.04
17+
18+
steps:
19+
- name: Checkout xmr-sample-python
20+
uses: actions/checkout@v4
21+
22+
- name: Download monero-python .deb package
23+
run: |
24+
set -euo pipefail
25+
asset_url="https://github.com/everoddandeven/monero-python/releases/download/${MONERO_PYTHON_VERSION}/${MONERO_PYTHON_DEB}"
26+
echo "Downloading $asset_url"
27+
curl -fsSL -o monero-python.deb "$asset_url"
28+
29+
- name: Install monero-python .deb package
30+
run: |
31+
sudo apt-get update
32+
sudo apt-get install -y ./monero-python.deb
33+
34+
- name: Run sample app
35+
run: python3 src/main.py

0 commit comments

Comments
 (0)